public override void OnTurnStarted(BattleCard battleCard) { SelectedSkill = null; SelectedTargets.Clear(); PopulateSkillsList(battleCard); battleCard.ShowTurnIndicator(); var enemies = BattleManager.Instance.BattleCards.Where(card => !card.IsDead && card.TeamTag != battleCard.TeamTag).ToList(); foreach (var enemy in enemies) { enemy.OnSelect += _SelectTarget; } }
public override void OnTurnStarted(BattleCard battleCard) { battleCard.ShowTurnIndicator(); PrevWaitTime = MathUtil.Clamp(BattleManager.Instance.GameTime.Total.Seconds + WaitTime, 0, 59); // cannot let this reach 60 because seconds will not pass 59. }