Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var bullet : Transform;
- function Update () {
- if (Input.GetKeyDown("space")){
- var bullet = Instantiate(bullet, transform.position, transform.rotation);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement