duck

duck

Jun 15th, 2010
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.42 KB | None | 0 0
  1.  
  2.     string consoleString = "";
  3.  
  4.     void OnGUI () {
  5.         if (showConsole)
  6.         {
  7.             // Make a multiline text area that modifies stringToEdit.
  8.             consoleString = GUI.TextArea(new Rect(10, 10, 300, 32), consoleString );
  9.             if (GUI.Button(new Rect(10, 44, 50, 20), "go"))
  10.             {
  11.                 ParseConsoleCommand(consoleString);
  12.         consoleString = "";
  13.             }
  14.         }
  15.     }
Advertisement
Add Comment
Please, Sign In to add comment