示例#1
0
    void OnGUI()
    {
        if (instance == null)
        {
            instance = this;
        }

        if (currentMenuState != null)
        {
            currentMenuState.OnGUI();
        }
        else
        {
            OpenMenu();
        }
    }