Esempio n. 1
0
    }             //end of Setup Death Menu

    /*
     *	FUNCTION: Execute a function based on button press in Pause Menu
     *	CALLED BY: MenuScript.PauseMenu()
     */
    public void processClicksPauseMenu(MenuScript.PauseMenuEvents index)
    {
        if (index == MenuScript.PauseMenuEvents.MainMenu)
        {
            SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);

            hMenuScript.InvokeShowMenu((int)MenuScript.MenuIDs.MainMenu);
            iMenuStatus = 1;                     //display main menu
        }
        else if (index == MenuScript.PauseMenuEvents.Resume)
        {
            hMenuScript.showHUDElements();
            hControllerScript.togglePlayerAnimation(true);
            iPauseStatus = 3;
        }
    }