Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import UnityEngine
- class Stars (MonoBehaviour):
- public speed as single = 0.0F
- def Update ():
- amtToMove = speed * Time.deltaTime
- transform.Translate(Vector3.down * amtToMove, Space.World)
- if transform.position.y < -27.32625f:
- transform.position.y = 22.32625f
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement