private bool CheckTimeForProjectDay(int totalSecond) { if (!classActivityController.HasEvent() || classActivityController.HasFinishEvent()) { return(true); } else if (timeManager.HasTimeEnough(totalSecond) && classActivityController.HasEvent() && classActivityController.TimeEnoughForActivity(totalSecond)) { return(true); } else { return(false); } }
public void SelectedDialogue(int choice) { switch (choice) { case 1: if (!classActivityController.HasEvent() || (classActivityController.HasEvent() && classActivityController.HasFinishEvent())) { SwitchScene.Instance.DisplaySaving(true); } else { menuController.Close(GameManager.Instance.CurrentGameScene); notificationController.HasEventToFinish(); } break; case 2: menuController.Close(GameManager.Instance.CurrentGameScene); break; } }