public override void ContinueTargetPursuing() { if (target.Is()) { if (!(state is ZombiePursuingTarget)) { state = new ZombiePursuingTarget(this); } } else { state = new TargetSearchState(this); } }
public ZombieAI(Unit unit, NavMeshAgent navAgent, ZombieStats stats) : base(unit, navAgent, stats) { state = new TargetSearchState(this); }