コード例 #1
0
 private void Update()
 {
     if (currentInteractable != null && currentInteractable.isInteractable && player.GetButtonDown("InteractPrimary"))
     {
         currentInteractable.OnPrimaryInteract();
         MoveOnInteract();
     }
 }