Beispiel #1
0
 public void StartGame()
 {
     Instance = this;
     Game     = GameModeBase.CreateGameMode(Mode);
     Game.Init();
     StartCoroutine(Game.GameLoop());
 }
Beispiel #2
0
 void Awake()
 {
     Instance = this;
     Game     = GameModeBase.CreateGameMode(GameMode);
     OnInit();
     InitGame();
 }
Beispiel #3
0
    private void OnConfigLoaded()
    {
        Debug.Log("config loaded");
        Game = (NormalMode)GameModeBase.CreateGameMode("Normal");
        Game.Init();
        Game.StartGame();

        Destroy(gameObject);
    }