Example #1
0
 public void InteractWithEntity(InGameEntity interactableEntity)
 {
     if (interactableEntity == null)
     {
         Debug.Log("No interactable entity found");
     }
     if (interactableEntity)
     {
         if (dialogEvent.TryDialogInteraction(interactableEntity) || dialogEvent.TryContinueDialog() || dialogEvent.TryAccelerateDialog())
         {
             Player_Gamestate.player_gameState = GAMESTATE.DIALOG;
         }
         else
         {
             Player_Gamestate.player_gameState = GAMESTATE.WORLDMAP;
         }
     }
 }