예제 #1
0
 protected void Awake()
 {
     try
     {
         if (Instance == null)
         {
             Instance = this;
         }
         resizer = new WindowResizer(new Rect(50, 250, 250, 200), new Vector2(200, 170));
     }
     catch (Exception ex)
     {
         DebugUtil.LogException(ex);
     }
 }
예제 #2
0
 protected void Awake()
 {
     try {
         if (Instance == null)
         {
             Instance  = this;
             resizer   = new WindowResizer(new Rect(50, 50, 250, 250), new Vector2(GetGuiMinHeight(), GetGuiMinWidth()));
             cameraGui = new ManualCameraControlGUI();
             StateHandler.keyBindings.ListenKeyUp(BoundKey.KEY_TOGGLE_WINDOW, ToggleWindow);
         }
     }
     catch (Exception ex)
     {
         DebugUtil.LogException(ex);
     }
 }
예제 #3
0
 protected void Awake()
 {
     try
     {
         if (Instance == null)
         {
             Instance = this;
         }
         resizer = new WindowResizer(new Rect(330, 50, 300, 300), new Vector2(300, 150));
         StateHandler.keyBindings.anyChanged += UpdateHelpText;
         UpdateHelpText();
     }
     catch (Exception ex)
     {
         DebugUtil.LogException(ex);
     }
 }