コード例 #1
0
ファイル: STLevelGUI.cs プロジェクト: st-melnyk/RobotArms
    void guiPlayToolBarButtons()
    {
        GUI.BeginGroup(toolBarRect);
        {
            GUILayout.BeginVertical();
            {
                if (GUILayout.Button("Mix Level", GUILayout.Height(buttonHeight)))
                {
                    STLevel.Mix();
                }

                if (GUILayout.Button("Solve Level", GUILayout.Height(buttonHeight)))
                {
                    STLevel.Solve();
                }

                if (GUILayout.Button("Next Skin", GUILayout.Height(buttonHeight)))
                {
                    selectedSkin++;
                    if (selectedSkin > 5)
                    {
                        selectedSkin = 0;
                    }

                    STLevel.ChangeSkin(selectedSkin);
                }
            }
            GUILayout.EndVertical();
        }
        GUI.EndGroup();
    }