Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     if (!CommandsAdded)
     {
         Console.RegisterCommand(new Console.Command
         {
             CommandName = "showInspector",
             HelpText    = "Shows the scenegraph",
             OnSubmit    = Show
         });
         Console.RegisterCommand(new Console.Command
         {
             CommandName = "hideInspector",
             HelpText    = "Hides the scenegraph",
             OnSubmit    = Hide
         });
         CommandsAdded = true;
     }
     Instance = this;
 }