public override void _Ready() { loadComponents(); if (GameData.CurrentMode == ModeData.Mode.QUICK_MATCH) { data = StadReader.LoadStadium("classic"); } else { data = StadReader.LoadStadium(OnlineTournamentHandler.Controller.Tournament.SchemeData.Rounds[OnlineTournamentHandler.Controller.CurrentRoundIndex].StadiumData.Name); } loadStadium(); initializeComponents(); players.Add(player); loadPlayers(); initializeEvents(); }
void onStadiumSet(string stadiumName) { removePreviousStadium(); data = StadReader.LoadStadium(stadiumName); loadStadium(); }