Ejemplo n.º 1
0
//	public void SetFullscreenState (bool fullScreenTrue)
//	{
//		if (fullScreenTrue) {
//			Screen.fullScreen = Screen.fullScreen;
//
////			if (!GameManager.instance.m_demoMode) {
////				PlayerPrefs.SetInt ("FullscreenState", 0);
////			}
//		} else {
//			Screen.fullScreen = !Screen.fullScreen;
////			if (!GameManager.instance.m_demoMode) {
////				PlayerPrefs.SetInt ("FullscreenState", 1);
////			}
//		}
//	}

//	public void SetResolutionState (int w, int h, bool doSave)
//	{
//		Screen.SetResolution(w, h, Screen.fullScreen);
//	}


    // Update is called once per frame
    void Update()
    {
//		Debug.Log (MenuState_GameState.instance.m_playerInputAllowed);
        if (m_menuState != null)
        {
            m_menuState.OnUpdate();
        }
    }