示例#1
0
    public virtual void FighterDefeated(Fighter defeatedFighter)
    {
        ActiveTeamMembers.Remove(defeatedFighter);

        if (ActiveTeamMembers.Count == 0)
        {
            BattleManager.Instance.SetState(BattleManager.BattleState.Lose);
        }
    }
示例#2
0
 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]);
         }
     }
 }