예제 #1
0
 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);
     }
 }
예제 #2
0
 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;
 }