public virtual void FighterDefeated(Fighter defeatedFighter) { ActiveTeamMembers.Remove(defeatedFighter); if (ActiveTeamMembers.Count == 0) { BattleManager.Instance.SetState(BattleManager.BattleState.Lose); } }
private void RefreshActiveTeamList() { if (ActiveTeamMembers == null) { ActiveTeamMembers = new List <Fighter>(); } else { ActiveTeamMembers.Clear(); } for (int i = 0; i < TeamMembers.Count; i++) { if (TeamMembers[i].CurrentHealth > 0) { ActiveTeamMembers.Add(TeamMembers[i]); } } }