Esempio n. 1
0
 public void myGUIPauseMenu()
 {
     if (!activate == false)
     {
         Rect position = this.drawAreaRect;
         GUI.BeginGroup(position);
         GUI.Box(new Rect(0, 0, 500, 300), string.Empty, this.bgStyle);
         GUI.Label(new Rect(0f, 0f, 20f, 10f), Label1, this.labelStyle);
         GUI.depth = 3;
         if (GUI.Button(new Rect(100, 100, 100, 100), "Credits") && !this.isWindowActive())
         {
             MkCreditsWindow.instance.showWindow = !MkCreditsWindow.instance.showWindow;
         }
         if (GUI.Button(new Rect(150, 150, 100, 100), "Optiones") && !this.isWindowActive())
         {
             MkOptionWindow.instance.showWindow = !MkOptionWindow.instance.showWindow;
             MkInGameGUI.showInfoBox(MkTextProvider.getTextFromId("gravel_pit_start"), false, 10f);
         }
         if (GUI.Button(new Rect(200, 200, 100, 100), "Profile"))
         {
             MkUserInterface.instance.showScreen(MkUserInterface.MkScreenType.ProfileChooser);
         }
         GUI.EndGroup();
     }
 }
Esempio n. 2
0
 public void Awake()
 {
     MkInGameGUI.instance = this;
 }