private void DrawButton(CerberusWindow window, CerberusWindowState buttonState)
 {
     GUILayout.BeginVertical();
     if (GUILayout.Button(buttonState.ToString(), GUILayout.Width(100), GUILayout.Height(50)))
     {
         window.CerberusWindowState = buttonState;
     }
     GUILayout.EndVertical();
 }
        private void ShowMainMenuButtons(CerberusWindow window, CerberusWindowState firstButtonState, CerberusWindowState secondButtonState)
        {
            GUILayout.BeginHorizontal();
            GUILayout.Space(255);

            DrawButton(window, firstButtonState);
            DrawButton(window, secondButtonState);

            GUILayout.EndHorizontal();
        }
Beispiel #3
0
 private void Awake()
 {
     LoadTextures();
     CerberusWindowState = CerberusWindowState.Main;
 }