Ejemplo n.º 1
0
    //---------------------------------------------------------------------------------------------------
    //---------------------------------------------------------------------------------------------------
    //---------------------------------------------------------------------------------------------------



    //---------------------------------------------------------------------------------------------------
    //-------------------------------------- Button responses -------------------------------------------
    //---------------------------------------------------------------------------------------------------
    // Response to click on Parts button (while in the level)
    public void OnButtonParts()
    {
        if (MenuAdapter.IsShown(partsMenu))
        {
            MenuAdapter.Hide(partsMenu);
            MenuAdapter.Hide(colorsMenu);
            freeCamera.Enable();
        }

        else if (MenuAdapter.IsShown(colorsMenu))
        {
            MenuAdapter.Show(partsMenu);
            MenuAdapter.Hide(colorsMenu);
            freeCamera.Disable();
        }

        else
        {
            MenuAdapter.Show(partsMenu);
            MenuAdapter.Hide(colorsMenu);
            freeCamera.Disable();
        }
    }