Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- [ExecuteInEditMode]
- public class Fenster : MonoBehaviour {
- public Rect WindowSize = new Rect (15,15,250,250);
- public void OnGUI(){
- if (Input.GetButtonDown (Space)) {
- WindowSize = GUI.Window (0, WindowSize, meinFenster, "Menu");
- public void meinFenster (int id)
- {
- GUI.Button (new Rect( 15,20,80,30), "Dock");
- GUI.Button (new Rect( 15,50,80,30), "Info");
- GUI.DragWindow ();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement