예제 #1
0
 private void Awake()
 {
     _ffInputActions = new FFInputActions();
     _ffInputActions.Game.MouseLeftClick.performed += _ =>
     {
         Select();
     };
     _ffInputActions.Game.SetFocusTarget.performed += _ =>
     {
         if (_objectSelected != null)
         {
             _isTargetFocused = !_isTargetFocused;
             if (_isTargetFocused)
             {
                 _objectSelected.Focus();
             }
             else
             {
                 _objectSelected.Unfocus();
             }
         }
     };
 }
예제 #2
0
 private void Awake()
 {
     _ffInputActions             = new FFInputActions();
     Application.targetFrameRate = 60;
     QualitySettings.vSyncCount  = 0;
 }