Advertisement
aandnota

Untitled

Feb 22nd, 2012
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var bullet : Transform;
  2.  
  3. function Update () {
  4.     if (Input.GetKeyDown("space")){
  5.     var bullet = Instantiate(bullet, transform.position, transform.rotation);
  6.     }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement