private void Update() { //if (state == null) state = new NoSelectionState(); if (!inputEnabled) { return; } state.HandleInput(); if (Input.GetMouseButtonDown(0)) { if (EventSystem.current.IsPointerOverGameObject()) { return; } EventManager.Instance.Raise(new OptionsMenuEvent(true)); } }