Example #1
0
    void Start()
    {
        health = 100;

        //At the start of the game, the zombies will find the gameobject called wayPoint.
        player = GameObject.Find("Player");

        anim = this.transform.GetComponent <ZombieAnim>();
    }
Example #2
0
 // Use this for initialization
 void Start()
 {
     _controller = this.GetComponent <CharacterController> ();
     _zombieAnim = this.GetComponent <ZombieAnim> ();
     LookAtTarget();
 }