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(); }
//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(); } }
public void Exit() { PongSceneManager.Exit(); }
public void EndGame(string message) { GameManager.Instance.Message = message; PongSceneManager.MainMenu(); }