Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [PunRPC]
- public virtual void Atirar(Vector3 pos, Quaternion dir)
- {
- if (balasNoPente > 0 && canFire && !recarregando)
- {
- balasNoPente--;
- GameObject b = Instantiate(bala, pos, dir);
- b.GetComponent<Bullet>().dono = nomePlayer;
- precisao += precisaoSomada;
- canFire = false;
- GetComponentInParent<SimpleMouseLook>().setVert(PropRecoil().y);
- GetComponentInParent<SimpleMouseLook>().setHor(PropRecoil().x);
- atirando = true;
- if(fire != null)
- {
- fire.Emit(1);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement