Esempio n. 1
0
    private void Start()
    {
        timeManager = TimeManager.Instance;
        characterStatusController = CharacterStatusController.Instance;

        _SleepTimeHour = timeManager.Hour;
        date.text      = timeManager.GetOnDate();
        time.text      = timeManager.GetOnTime();

        if (_SleepTimeHour >= 0f && _SleepTimeHour <= 5f)
        {
            characterStatusController.Sleep(true);
        }
        else
        {
            characterStatusController.Sleep(false);
        }

        StartCoroutine(UpdateDateTime());
    }