Raphafrei

Fix

Jun 10th, 2016
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #pragma strict
  2. //Script Da Arma
  3.  
  4. var bullet : GameObject;
  5. var CanoDaArma : Transform;
  6. var AudioArma : AudioSource;
  7.  
  8. function Start () {
  9.  
  10. }
  11.  
  12. function Update () {
  13.  
  14.      if(Input.GetButtonDown("Fire1")) {
  15.          AudioArma.Play();
  16.          Instantiate(bullet,CanoDaArma.position,CanoDaArma.rotation) ;
  17.      }
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment