Ejemplo n.º 1
0
    public static void PressSelectKey(bool dir)
    {
        switch (current_selection_title)
        {
        case SELECTION_TITLE.WAITFORKEY:
            current_selection_title = SELECTION_TITLE.MAIN;
            return;

        case SELECTION_TITLE.MAIN:
            current_selection_title = dir ? SELECTION_TITLE.TUTORIAL : SELECTION_TITLE.OPTION;
            return;

        case SELECTION_TITLE.TUTORIAL:
            current_selection_title = dir ? SELECTION_TITLE.TESTSTAGE : SELECTION_TITLE.MAIN;
            return;

        case SELECTION_TITLE.TESTSTAGE:
            current_selection_title = dir ? SELECTION_TITLE.OPTION : SELECTION_TITLE.TUTORIAL;
            return;

        case SELECTION_TITLE.OPTION:
            current_selection_title = dir ? SELECTION_TITLE.MAIN : SELECTION_TITLE.TESTSTAGE;
            return;

        default:
            return;
        }
    }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        ReassignScripts();

        pausing            = false;
        cleared            = false;
        gameover           = false;
        inMissingDirection = false;

        switch (Application.loadedLevelName.ToString())
        {
        case "Title":

            current_selection_title = SELECTION_TITLE.WAITFORKEY;
            spiritBar.enabled       = false;
            break;                    //End of case Title

        case "Main":
        case "Tutorial":
        case "Test01":
            player_life = DEFAULT_LIFE;

            //spiritBar.enabled = false;
            //inputManager.enabled = false;
            //guiManager.enabled = false;


            break;                    //End of case "Main"

        default:
            break;
        }
    }
Ejemplo n.º 3
0
    public static void PressDecisionKey()
    {
        switch (current_selection_title)
        {
        case SELECTION_TITLE.WAITFORKEY:
            current_selection_title = SELECTION_TITLE.MAIN;
            return;

        case SELECTION_TITLE.MAIN:
            GameStart("Main");
            return;

        case SELECTION_TITLE.TUTORIAL:
            GameStart("Tutorial");
            return;

        case SELECTION_TITLE.TESTSTAGE:
            GameStart("Test01");
            return;

        case SELECTION_TITLE.OPTION:
            return;

        default:
            return;
        }
    }