private void SaveAllowKeys(IAllowKeys args) { _allowKeys = args.CanAllowKeys; if (!_allowKeys) { _currentSwitchFunction = SwitchFunction.Unset; } }
private void OnControlsChanged(IAllowKeys args) { if (!ToggleOnNewControls || !_uiEvents.ReturnMasterNode.MyBranch.CanvasIsEnabled) { return; } CycleToggle(args.CanAllowKeys); }
private void AllowKeys(IAllowKeys args) { if (!CanStart && CanAllowKeys) { _myCanvasGroup.blocksRaycasts = false; return; } var blockRaycast = CanAllowKeys ? BlockRaycast.No : BlockRaycast.Yes; SetBlockRaycast(blockRaycast); }
private void SetAllowKeys(IAllowKeys args) { if (!AllowKeys && _active) { ExitGOUI(); } if (AllowKeys && _active) { PointerOver = true; } }
private void SaveAllowKeys(IAllowKeys args) => _controllingWithKeys = args.CanAllowKeys;
private void SaveAllowKeys(IAllowKeys args) => _allowKeys = args.CanAllowKeys;
private void SwitchedToKeys(IAllowKeys args) => SetEventSystem(GetCorrectLastHighlighted());