private void fire() { r.Raycastfire(); GameObject bul = (GameObject)Instantiate(fireeffect, firepos.position, Quaternion.identity); this.GetComponent <Animator>().Play("Fire SniperRifle"); }