Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var ammus : GameObject;
- var instance : GameObject;
- var laskuri : int = 2;
- function Update () {
- if(laskuri >= 1 ){
- if(Input.GetButtonUp("Fire1")){
- Instantiate(ammus, transform.position, transform.rotation);
- laskuri = laskuri - 1;}
- if(Input.GetButtonUp("Fire2")){
- laskuri= 2;}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement