Esempio n. 1
0
 void OnDayPeriodAdvanced(DayPeriodUpdatedEvent e)
 {
     if (GameStateController.CurrentState == GameState.Morning || GameStateController.CurrentState == GameState.Afternoon)
     {
         ConfirmAssignmentButton.interactable = true;
     }
 }
Esempio n. 2
0
 void OnDayPeriodUpdated(DayPeriodUpdatedEvent e)
 {
     if (GameStateController.CurrentState == GameState.Morning)
     {
         DirectionalLight.color = MorningColor;
         DirectionalLight.transform.rotation = Quaternion.Euler(MorningRotation);
     }
     else if (GameStateController.CurrentState == GameState.Afternoon)
     {
         DirectionalLight.color = AfternoonColor;
         DirectionalLight.transform.rotation = Quaternion.Euler(AfternoonRotation);
     }
 }
 void OnDayPeriodUpdated(DayPeriodUpdatedEvent e)
 {
     isAnimationInterruptable = GameStateController.CurrentState == GameState.Morning || GameStateController.CurrentState == GameState.Afternoon;
 }
 void OnDayPeriodAdvanced(DayPeriodUpdatedEvent e)
 {
     UnassignButton.gameObject.SetActive(GameStateController.IsInDayManagementState());
 }