void changeTimeState() { if (CurrentTimeState == DayorNight.Day) { CurrentTimeState = DayorNight.Night; } else { CurrentTimeState = DayorNight.Day; } }
public override void OnProcedureEnter() { base.OnProcedureEnter(); dayNightTimeCounter = 0; autoIncreaseTimeCounter = 0; CurrentTimeState = DayorNight.Day; GameController.Instance.level = GameController.Instance.level + 1; InitGame(); currentGameUI.GetComponent <CanvasGroup> ().alpha = 1; currentGameUI.GetComponent <CanvasGroup> ().blocksRaycasts = true; }