Exemple #1
0
 void Restart()
 {
     addPoints          = false;
     rb.velocity        = Vector3.zero;
     rb.angularVelocity = Vector3.zero;
     transform.position = startPoint.position;
     transform.rotation = startRotation;
     restartCount++;
     if (restartCount > 8)
     {
         ads.ShowNormalVideo();
         restartCount = 0;
     }
 }