示例#1
0
 // Update is called once per frame
 void FixedUpdate()
 {
     if (util.playerFound() && util.distToPlayer < util.attackRange)
     {
         combat.Attack();
     }
     else if (util.playerFound() || util.inCombat)
     {
         util.inCombat = true;
         combat.Chase();
     }
     else
     {
         pacing.Pace();
     }
 }