示例#1
0
 void OnGUI()
 {
     if (fadingOut)
     {
         fader.startFadeOut();
     }
 }
示例#2
0
    void OnGUI()
    {
        if (_nReached == _strokes.Length | (DateTime.Now.Subtract(_start).TotalSeconds > _maxSecs))
        {
            _fader.startFadeOut();
        }

        if (!_fader.isFadedOut())
        {
            return;
        }
        if (_once)
        {
            return;
        }
        _once = true;
        SceneManager.LoadScene("Launcher");
    }
示例#3
0
    void OnGUI()
    {
        if (_fadeOut)
        {
            Fader.startFadeOut();
        }
        var e = Event.current;

        if (e.type == EventType.KeyDown && e.control && e.keyCode == KeyCode.End)
        {
            if (_once)
            {
                return;
            }
            _once            = true;
            Cursor.lockState = CursorLockMode.None;
            Cursor.visible   = true;
            SceneManager.LoadScene("Launcher");
        }
    }