private void Awake()
 {
     if (playerParticleManager == null)
     {
         playerParticleManager = this;
     }
 }
示例#2
0
 // Start is called before the first frame update
 void Awake()
 {
     visual     = transform.Find("Visual");
     particles  = visual.GetComponentInChildren <PlayerParticleManager>();
     controller = GetComponent <PlayerController>();
 }