示例#1
0
 public void UpdateAtAttackCheck(AgentKnight unit, bool Attacked)
 {
     if (Attacked)
     {
         unit.AttackCount += 1;
     }
 }
示例#2
0
 public void RewardAtStep(AgentKnight unit)
 {
     if (unit.AttackCount > 0)
     {
         AddReward(1f);
     }
     else
     {
         AddReward(-0.1f);
     }
     unit.AttackCount = 0;
 }