Пример #1
0
 public void UpdateAtAttackCheck(AgentHealer unit, bool Attacked)
 {
     if (Attacked)
     {
         unit.AttackCount += 1;
     }
 }
Пример #2
0
 public void RewardAtStep(AgentHealer unit)
 {
     if (unit.AttackCount > 0)
     {
         AddReward(1f);
     }
     else
     {
         AddReward(-0.1f);
     }
     unit.AttackCount = 0;
 }