Beispiel #1
0
 void Awake()
 {
     oscCS = GetComponent <Oscillate>();
     if (soloMode)
     {
         enemyA = transform.GetComponent <Animator> ();
     }
     else
     {
         enemyA = transform.root.GetComponent <Animator> ();
         headA  = enemyA.transform.Find("head Transform").Find("head").GetComponent <Animator> ();
     }
 }
Beispiel #2
0
 void Awake()
 {
     oscCS = GetComponent<Oscillate>();
     if (soloMode) {
         enemyA = transform.GetComponent<Animator> ();
     } else {
             enemyA = transform.root.GetComponent<Animator> ();
             headA = enemyA.transform.Find ("head Transform").Find ("head").GetComponent<Animator> ();
     }
 }