public virtual void Update() { if (currentSelected != null) { if (!selectables.Contains(currentSelected) || !currentSelected.selectable.IsInteractable()) { ColorSelected(currentSelected, 1); HandleChangeSelected(false); } ColorSelected(currentSelected, colorMultiplier.GetValue()); HandleMouseInput(); HandleMovementInput(); HandleSubmitSelected(); } else { HandleChangeSelected(false); } }
public virtual void DoUpdate() { leftClickInput = InputManager.LeftClickInput; if (currentSelected != null) { if (!CanSelectSelectable(currentSelected)) { ColorSelected(currentSelected, 1); HandleChangeSelected(false); } ColorSelected(currentSelected, colorMultiplier.GetValue()); HandleMouseInput(); HandleMovementInput(); HandleSubmitSelected(); } else { HandleChangeSelected(false); } previousLeftClickInput = leftClickInput; }