// Start is called before the first frame update void Start() { script = GameObject.Find("Player").GetComponent <Healing>(); script2 = zombieHips.GetComponent <MutantHealth>(); anim = zombie.GetComponent <Animator>(); attackDamage = 25; attacking = false; }
// Start is called before the first frame update void Start() { agent = GetComponent <NavMeshAgent>(); character = GetComponent <ThirdPersonCharacter>(); sphere = GetComponent <SphereCollider>(); anim = gameObject.GetComponent <Animator>(); mh = zombie.GetComponent <MutantHealth>(); agent.updatePosition = true; agent.updateRotation = false; waypoints = GameObject.FindGameObjectsWithTag("Waypoint"); waypointInd = Random.Range(0, waypoints.Length); state = MutantSight.State1.CHASE; target = GameObject.FindGameObjectWithTag("Player"); alive = true; heightMultiplyer = 1.36f; attacking = false; }