Exemple #1
0
 // Use this for initialization
 void Start()
 {
     player = GameObject.Find("Emila");
     c      = player.GetComponent <Controll>();
     s      = saw.GetComponent <spikes>();
 }
Exemple #2
0
 // Use this for initialization
 void Start()
 {
     curState = State.Top;
     counter  = 0;
     spike    = GetComponentInChildren <spikes>();
 }