示例#1
0
 private void SaveAllowKeys(IAllowKeys args)
 {
     _allowKeys = args.CanAllowKeys;
     if (!_allowKeys)
     {
         _currentSwitchFunction = SwitchFunction.Unset;
     }
 }
示例#2
0
 private void OnControlsChanged(IAllowKeys args)
 {
     if (!ToggleOnNewControls || !_uiEvents.ReturnMasterNode.MyBranch.CanvasIsEnabled)
     {
         return;
     }
     CycleToggle(args.CanAllowKeys);
 }
示例#3
0
    private void AllowKeys(IAllowKeys args)
    {
        if (!CanStart && CanAllowKeys)
        {
            _myCanvasGroup.blocksRaycasts = false;
            return;
        }
        var blockRaycast = CanAllowKeys ? BlockRaycast.No : BlockRaycast.Yes;

        SetBlockRaycast(blockRaycast);
    }
示例#4
0
        private void SetAllowKeys(IAllowKeys args)
        {
            if (!AllowKeys && _active)
            {
                ExitGOUI();
            }

            if (AllowKeys && _active)
            {
                PointerOver = true;
            }
        }
示例#5
0
 private void SaveAllowKeys(IAllowKeys args) => _controllingWithKeys = args.CanAllowKeys;
示例#6
0
 private void SaveAllowKeys(IAllowKeys args) => _allowKeys = args.CanAllowKeys;
示例#7
0
 private void SwitchedToKeys(IAllowKeys args) => SetEventSystem(GetCorrectLastHighlighted());