Beispiel #1
0
 public void OnSelectedInteractableChanged(object sender, SelectedInteractableChangedEventArgs args)
 {
     var handler = this.SelectedInteractableChanged;
     if (handler != null)
     {
         handler(sender, args);
     }
 }
Beispiel #2
0
 private void OnSelectedInteractableChanged(object sender, SelectedInteractableChangedEventArgs args)
 {
     this.InteractionText.text = args.Interactable != null
         ? string.Format("[E] {0}", args.Interactable.Interaction)
         : string.Empty;
 }