daily pastebin goal
4%
SHARE
TWEET

Untitled

a guest Feb 19th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. timer += Time.deltaTime;
  2.  
  3.  
  4.  
  5.     if (timer > 1f&& translation<highspeed) { //after 1 second has passed...
  6.             timer = 0; // reset timer
  7.         translation +=incfactor ; //increase speed by 0.5
  8.         }
  9.  
  10.         transform.Translate (0, translation, 0);
  11.  
  12.  
  13.  
  14.  
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top