예제 #1
0
    private IEnumerator ChangeToDay()
    {
        day.SetActive(true);
        night.SetActive(false);
        yield return(new WaitForSecondsRealtime(timeToSwitchTimes));

        soundManager.ChangeMusic();
        StartCoroutine(ChangeToNight());
    }