예제 #1
0
 void Update()
 {
     if (Time.time - startTime >= nextSceneTime)
     {
         DayManager.LoadDay();
     }
     else if (Time.time - startTime >= blacknessTime)
     {
         nightBlocker.SetActive(true);
     }
     else if (Time.time - startTime >= lightsOutTime)
     {
         renderer.material.color = Color.black;
     }
 }