webik150

ProceduralAsteroid - Update()

Oct 31st, 2015
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.17 KB | None | 0 0
  1. // Update is called once per frame
  2.     void Update () {
  3.         if (Input.GetKeyDown (KeyCode.G)) {
  4.             Generate (Random.Range (-12525352, -354245), Random.Range (3, 256);
  5.         }
  6.     }
Advertisement
Add Comment
Please, Sign In to add comment