예제 #1
0
 // Update is called once per frame
 void Update()
 {
     if (collider.TestCollisionVsCircle(playerCollider))
     {
         LoadScene.LoadWin();
     }
 }
 void Update()
 {
     if (IsTutorial())
     {
         if (timer >= gracePeriod)
         {
             EndTutorial();
             timer = 0f;
             return;
         }
         timer += Time.deltaTime;
         SetCountdown(gracePeriod - timer);
     }
     if (!IsTutorial())
     {
         if (timer >= roundTime)
         {
             LoadScene.LoadWin();
         }
         eventSystem.SetInterval(Mathf.Lerp(startInterval, endInterval, timer / roundTime));
         timer += Time.deltaTime;
         SetCountdown(roundTime - timer);
     }
 }