Пример #1
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKey(KeyCode.Escape))
     {
         GotoScene.GotoGame();
     }
 }
Пример #2
0
    private void Start()
    {
        Global.CheckNullValues(gameObject, TransitionGo);
        TransitionGo.GetComponentInChildren <OnAnimationFinish>().OnFinish += Animation_OnFinish;

        GotoSceneScript = GetComponent <GotoScene>();
        TimeRemaining   = RemoteConnectionTimeOut;
    }
Пример #3
0
 public void OnNicknameInputFinished()
 {
     if (NicknameInput.text != "")
     {
         CurrentNickname = NicknameInput.text;
     }
     Save();
     GotoScene.GotoHighscore();
 }
Пример #4
0
    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);
    }