CodePudding user response:
Starts the enter incident particles generated code inside theGameOject go=GameObject. Initiate ()
Go. Transfer. The parent=XXX. Transfer
CodePudding user response:
Need two scripts, a script on the cube, a script on the sphere, can choose a script in the script, for example object is particalsystem note, then in oncollider monobehaviour script the life cycle of a function or any oncollision, see which one do you choose to trigger the particles, part code is very simple, don't think it's too difficult