protected virtual void ActionInput() { if (!Game.GameActive) { return; } if (UIRadialMenu.Active) { for (int i = 0; i < _numericKeys.Length; i++) { if (Input.GetKeyDown(_numericKeys[i])) { UIRadialMenu.Confirm(i); } } return; } if (InputSystem.GetButtonDown(BaseControls.Use)) { if (!WorldControlMonitor.Use()) { UICenterButton.TryClickEvent(); } } }
protected virtual void Awake() { _cam = GetComponent <Camera>(); Game.SpriteCamera = _cam; Listener = GetComponent <AudioListener>(); WorldControlMonitor.SetCamera(Player.Cam); }
private bool CheckLeftClick() { if (PlayerInput.IsCursorOverUI || !Input.GetMouseButtonDown(0)) { return(false); } if (UISubMenu.Default.Active || UIRadialMenu.Active) { return(false); } if (UIDragDropHandler.CurrentData != null && UIDropWorldPanel.Active) { return(false); } if (WorldControlMonitor.Use()) { return(false); } return(true); }
void Awake() { _main = this; _currentRayDistance = _rayDistance; _currentEnemyRayDistance = _enemyDistance; }