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; } }
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); } }
public void CloseCounterNotifPanel() { counterNotifPanel.SetActive(false); cookingStation.EnableMovementOfPlayer(); // Enable player movement so they can serve food when receive notif that counter has no space }