Exemple #1
0
 public void Play()
 {
     GameManager.Instance.SezuireMode        = false;
     GameManager.Instance.Hitmarker          = HitmarkerCheckbox.isOn;
     GameManager.Instance.SezuireMode        = SezuireModeCheckbox.isOn;
     GameManager.Instance.PlayerMode         = (PlayerMode)PlayerModeDropdown.value;
     GameManager.Instance.GameSpeed          = Single.Parse(GameSpeedInputField.text);
     GameManager.Instance.AiDifficulty       = Single.Parse(AiDifficultyInputField.text);
     GameManager.Instance.BallSpeedIncrement = Single.Parse(BallSpeedIncrementInputField.text);
     PongSceneManager.PlayPong();
 }
Exemple #2
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();
        }
    }
Exemple #3
0
 public void Exit()
 {
     PongSceneManager.Exit();
 }
Exemple #4
0
 public void EndGame(string message)
 {
     GameManager.Instance.Message = message;
     PongSceneManager.MainMenu();
 }