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