void Awake() { announcerController = GameObject.FindGameObjectWithTag("Announcer").GetComponent <AnnouncerController>(); announcerController.OnUnitExplode += ExplosionResponse; announcerController.OnChumpDied += ChumpDiedResponse; myMaterial = GetComponent <MeshRenderer>().material; normalColor = myMaterial.color; myState = CHUMPSTATE.WANDER; myNav = GetComponent <NavMeshAgent>(); }
void Awake() { announcerController = GameObject.FindGameObjectWithTag("Announcer").GetComponent <AnnouncerController>(); }