Exemplo n.º 1
0
 public DeathParticles GetDeathParticles()
 {
     if (deathParticles == null)
     {
         deathParticles = GetComponentInChildren <DeathParticles>();
     }
     return(deathParticles);
 }
 // Use this for initialization
 void Start()
 {
     characterController = GetComponent <CharacterController>();
     deathParticles      = gameObject.GetComponentInChildren <DeathParticles>();
 }