Пример #1
0
    public void Update()
    {
        if (gameOverlord.GetCurrentReleaseSetting() == "Cabinet" & Input.GetKeyDown(KeyCode.C))
        {
            Application.Quit();
        }

        // Actually, first run check for keyboard vs controller.
        if (gameOverlord.GetCurrentGameMode() == "PLAY")
        {
            KeyboardControls();
        }
        else if (gameOverlord.GetCurrentGameMode() == "START")
        {
            if (Input.anyKeyDown)
            {
                gameOverlord.LoadPlayerSelect();
            }
        }
        else if (gameOverlord.GetCurrentGameMode() == "ENDGAME")
        {
            if (Input.anyKeyDown)
            {
                gameOverlord.LoadStartScreen();
            }
        }



        DevControls();
    }
Пример #2
0
    private void DetermineRelease()
    {
        switch (gameOverlord.GetCurrentReleaseSetting())
        {
        case "PC":
            isPCRelease = true;
            break;

        case "Cabinet":
            isCABRelease = true;
            break;

        case "Mbile":
            isMobileRelease = true;
            break;
        }
    }