Advertisement
Guest User

Untitled

a guest
Jul 13th, 2014
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.48 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. [ExecuteInEditMode]
  5.  
  6. public class Fenster : MonoBehaviour {
  7.  
  8.     public Rect WindowSize = new Rect (15,15,250,250);
  9.  
  10.     public void OnGUI(){
  11.     if (Input.GetButtonDown (Space)) { 
  12.                         WindowSize = GUI.Window (0, WindowSize, meinFenster, "Menu");
  13.  
  14.                
  15.    
  16.    
  17.  
  18.     public void meinFenster (int id)
  19.     {
  20.  
  21.         GUI.Button (new Rect( 15,20,80,30), "Dock");
  22.  
  23.         GUI.Button (new Rect( 15,50,80,30), "Info");
  24.         GUI.DragWindow ();
  25.     }
  26.  
  27. }
  28.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement