Beispiel #1
0
    //public GameMode GameMode;

    public void Awake()
    {
        if (Instance)
        {
            DestroyImmediate(this.gameObject); //So I can debug from any scene
        }
        else
        {
            Instance = this;
            DontDestroyOnLoad(this);
            PongSceneManager.MainMenu();
        }
    }
Beispiel #2
0
 public void EndGame(string message)
 {
     GameManager.Instance.Message = message;
     PongSceneManager.MainMenu();
 }