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> (); } }
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> (); } }