public Fight(FighterTeam alpha, FighterTeam beta) { Alpha = new FighterTeamFightStatus(alpha); Beta = new FighterTeamFightStatus(beta); FightOrder = new List<FighterFightStatus>(); FightOrder.AddRange(Alpha.SetupFightStatus()); FightOrder.AddRange(Beta.SetupFightStatus()); }
public FighterTeam SelectTeam(FighterTeam selectTeam = null) { if(selectTeam == null) { this.ActiveTeam = Teams.FirstOrDefault(); } else if(Teams.Contains(selectTeam)) { this.ActiveTeam = selectTeam; } return this.ActiveTeam; }
void InitializeFight() { if (managerReference.ActiveTeam == null) { yourTeam = managerReference.SelectTeam(); } else { yourTeam = managerReference.ActiveTeam; } FighterTeam AlphaTeam = yourTeam; yourTeam.Info.TeamName = "Alpha Team"; FighterTeamInfo betaInfo = new FighterTeamInfo(true); FighterTeam BetaTeam = new FighterTeam(betaInfo); betaInfo.TeamName = "Beta Team"; Fight = new Fight(AlphaTeam, BetaTeam); StartCoroutine(Fight.Run()); }
public FighterTeamFightStatus(FighterTeam team) { this.TeamOrganization = team; this.TeamInfo = team.Info; }