// Update is called once per frame void Update() { if (Input.GetKey(KeyCode.Escape)) { GotoScene.GotoGame(); } }
private void Start() { Global.CheckNullValues(gameObject, TransitionGo); TransitionGo.GetComponentInChildren <OnAnimationFinish>().OnFinish += Animation_OnFinish; GotoSceneScript = GetComponent <GotoScene>(); TimeRemaining = RemoteConnectionTimeOut; }
public void OnNicknameInputFinished() { if (NicknameInput.text != "") { CurrentNickname = NicknameInput.text; } Save(); GotoScene.GotoHighscore(); }
private void Start() { if ((int)SelectedTrack >= Tracks.Count) { Debug.LogError($"invalid track id: {SelectedTrack} - not on Tracks list"); GotoScene.GotoMenu(); } for (int i = 0; i < Tracks.Count; ++i) { Tracks[i].SetActive(i == (int)SelectedTrack); } _GameController = this; IsRunning = false; Target.Save.Track = SelectedTrack; Countdown.gameObject.SetActive(true); }