Ejemplo n.º 1
0
 void CloseCurrentlyOpenMenu()
 {
     ReopenRegularMenu();
     //GraphicsMenuObj.SetActive(false);
     ControlsPauseScreen.SetActive(false);
     VolumePauseScreen.SetActive(false);
     PauseScreenOptionOpened = enumPauseScreenOptions.None;
     MenuIsOpen = false;
 }
Ejemplo n.º 2
0
    void ResetPauseMenuOptions()
    {
        VolumeSliderCurrentlySelected = 0;
        MenuIsOpen      = false;
        move            = 0;
        buttonPressTime = 0;
        string LastDeviceUsed      = Controls.LastDeviceStyle.ToString();
        string LastCheckDeviceUsed = LastDeviceUsed;

        //GraphicsMenuObj.SetActive(false);
        ControlsPauseScreen.SetActive(false);
        VolumePauseScreen.SetActive(false);
        ReopenRegularMenu();
    }
Ejemplo n.º 3
0
    void OpenMenuItemInvokeFuction()
    {
        GameObject MenuToOpenObj = null;

        switch (PauseScreenOptionOpened)
        {
        case enumPauseScreenOptions.Controls:
            MenuToOpenObj = ControlsPauseScreen;
            break;

        case enumPauseScreenOptions.Volume:
            MenuToOpenObj = VolumePauseScreen;
            break;
        }
        //GraphicsMenuObj.SetActive(false);
        ControlsPauseScreen.SetActive(false);
        VolumePauseScreen.SetActive(false);
        MenuToOpenObj.SetActive(true);
        MenuIsOpen = true;
        CloseRegularMenu();
        PauseScreenOptionOpened = PauseScreenOption;
    }