Esempio n. 1
0
 private void WindowPre(int uid)
 {
     try
     {
         InputLockManager.RemoveControlLock("ROLWindowLock");
         /* Block clicks through window onto ship or other editor UI */
         if (this.backupPosition.Contains(new Vector2(Input.mousePosition.x, Screen.height - Input.mousePosition.y)))
         {
             InputLockManager.SetControlLock(ControlTypes.EDITOR_LOCK, "ROLWindowLock");
         }
         Window(uid);
     }
     catch (Exception e)
     {
         ROLLog.exc(e);
     }
 }