// Use this for initialization void Start() { Cursor.visible = false; gameObject.tag = Tags.ELITE_ZOMBIE; life = 100; coroutinePatrolEnded = true; co = null; wa = null; blood = null; currentWayPoint = -1; currentState = AIStates.Patrol; animator = GetComponentInParent <Animator>(); initAnimator(); setAgentParameters(0, 0); wayPoints = new List <Transform>(15); wp = WayPoint_Manager.getInstance(); wayPoints = wp.getWayPointsPath(); setNextRandomPoint(); }
// Use this for initialization void Start() { StopAllCoroutines(); gameObject.tag = Tags.FAST_ZOMBIE; isDead = false; coroutinePatrolEnded = true; co = null; wa = null; blood = null; currentWayPoint = -1; currentState = AIStates.Patrol; animator = GetComponent <Animator>(); initAnimator(); wayPoints = new List <Transform>(15); wp = WayPoint_Manager.getInstance(); wayPoints = wp.getWayPointsPath(); setNextRandomPoint(); }