Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma strict
- //Script Da Arma
- var bullet : GameObject;
- var CanoDaArma : Transform;
- var AudioArma : AudioSource;
- function Start () {
- }
- function Update () {
- if(Input.GetButtonDown("Fire1")) {
- AudioArma.Play();
- Instantiate(bullet,CanoDaArma.position,CanoDaArma.rotation) ;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment