Exemple #1
0
 void Hit()
 {
     if (aI_Controller.IsInRange())
     {
         aI_Controller.combat_controller.DoDamage(target_combatControl);
         curTime = 0;
     }
     Finished();
 }
Exemple #2
0
 void CheckTarget()
 {
     if (aI_Controller.IsInRange() == false)
     {
         aI_Controller.SetDestinationToTarget();
         curTimer = 0;
     }
     else
     {
         Attack();
     }
 }