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>(); }
// Use this for initialization void Start() { _controller = this.GetComponent <CharacterController> (); _zombieAnim = this.GetComponent <ZombieAnim> (); LookAtTarget(); }