Esempio n. 1
0
    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();
    }
Esempio n. 2
0
 void onStadiumSet(string stadiumName)
 {
     removePreviousStadium();
     data = StadReader.LoadStadium(stadiumName);
     loadStadium();
 }