Question by
RogueMissile · Mar 01, 2018 at 09:34 PM ·
c#unity 5playereffectdeactivate
How do I trigger a particle effect on the player after a timer script deactivates the player gameobject?
When the time is up, the player is despawned by a script using
Player = GameObject.FindGameObjectWithTag("Player"); Player.SetActive(false);
just after this occurs, I want my explosion effect (which is a child to the player object so that it follows the player around) to activate however every code I attempt throws up issues. The effect is a custom prefab that forms a ball of plasma expelled outwards in an explosion and I want it to look like the player gets disintegrated by plasma.
How do I achieve this?
Comment