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