Beispiel #1
0
 private void DisplayNextAndCloseMePanel()
 {
     mePanel.SetActive(false);
     if (!currentDialogue.isLast)
     {
         currentDialogue = nextDialogue;
         RunCurrentDialogue();
     }
     else
     {
         movementController.EnableMovementOfPlayer();
         StartCoroutine(currentCustomer.TimeToLeave());
         // Invoke the ending action
         endDialogueAction.Invoke();
         endDialogueAction = defaultDialogueAction;
     }
 }
Beispiel #2
0
 public void CloseConfirmLeaveNotifPanel()
 {
     if (currSceneIdx == (int)SceneIndexes.TUT_DUNGEON) // tutorial dungeon scenes
     {
         dungeonController.EnableMovement();
         confirmLeaveNotifPanel.SetActive(false);
     }
     else // tutorial restaurant scene
     {
         cookingStation.EnableMovementOfPlayer();
         confirmLeaveNotifPanel.SetActive(false);
     }
 }
Beispiel #3
0
 public void CloseCounterNotifPanel()
 {
     counterNotifPanel.SetActive(false);
     cookingStation.EnableMovementOfPlayer(); // Enable player movement so they can serve food when receive notif that counter has no space
 }