Exemple #1
0
    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>();
    }
Exemple #2
0
 void Awake()
 {
     announcerController = GameObject.FindGameObjectWithTag("Announcer").GetComponent <AnnouncerController>();
 }