Exemple #1
0
 void Update()
 {
     if (alwaysTitle.Length > 0)
     {
         if (manager == null)
         {
             manager = gameObject.AddComponent <GameInspectorManager>();
         }
         manager.windowTitle = alwaysTitle;
         manager.followMouse = false;
         manager.bound       = bound;
         manager.Show(this);
     }
     else
     {
         if (manager != null)
         {
             manager.Hide(this);
         }
     }
 }
Exemple #2
0
 void OnMouseEnter()
 {
     sharedManager.Show(this);
 }
Exemple #3
0
 //These two functions make the inspector display when the mouse is
 //over the game object.
 void OnMouseEnter()
 {
     manager.Show(this);
 }