コード例 #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();
             }
         }
     };
 }