Advertisement
pivotraze

Stars Script

Dec 2nd, 2012
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
BOO 0.28 KB | None | 0 0
  1. import UnityEngine
  2.  
  3. class Stars (MonoBehaviour):
  4.    
  5.     public speed as single = 0.0F
  6.  
  7.     def Update ():
  8.         amtToMove = speed * Time.deltaTime
  9.         transform.Translate(Vector3.down * amtToMove, Space.World)
  10.  
  11.         if transform.position.y < -27.32625f:
  12.             transform.position.y = 22.32625f
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement