예제 #1
0
 private void Update()
 {
     if (played && !finished)
     {
         Controller.instance.rg.simulated = true;
         var progress = Time.time - lerpStart;
         grp.alpha = Mathf.Lerp(1.0f, 0.0f, progress / lerpDuration);
         if (lerpDuration < progress)
         {
             cam.followY = true;
             chrono.trigger();
             finished = true;
         }
     }
     else if (!played)
     {
         cam.followY = false;
         Controller.instance.rg.simulated = false;
     }
 }