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