Ejemplo n.º 1
0
 public void InvokeInteractButtonEvent()
 {
     if (InteractButtonEvent != null)
     {
         InteractButtonEvent.Invoke();
     }
 }
Ejemplo n.º 2
0
 private void Update()
 {
     if (Input.GetKeyDown(KeyCode.E))
     {
         InteractButtonEvent?.Invoke();
     }
 }