Esempio n. 1
0
 private void DeselectInteractable()
 {
     if (_selectedInteractable != null)
     {
         OnDeselectInteractable.Invoke(Master, _selectedInteractable);
         _selectedInteractable = null;
     }
 }
Esempio n. 2
0
 private void SelectInteractable(ITInteractable interactable)
 {
     if (_selectedInteractable != interactable)
     {
         if (_selectedInteractable != null)
         {
             OnDeselectInteractable.Invoke(Master, _selectedInteractable);
         }
         _selectedInteractable = interactable;
         OnSelectInteractable?.Invoke(Master, _selectedInteractable);
     }
 }