Exemplo n.º 1
0
 void Update()
 {
     if (!comp)
     {
         if (timer < 1.0f)
         {
             transform.localScale = Vector3.one * curve.Evaluate(timer);
             timer += Time.deltaTime;
         }
         else
         {
             transform.localScale = Vector3.one;
             ctrl.ChangeScene(gm.stageNo + 1);
             comp = true;
         }
     }
 }