public override void Shoot() { base.Shoot(); // Projectile GameObject tempObj = (GameObject)Instantiate(ammunition, transform.position, transform.rotation); tempObj.transform.rotation = transform.parent.rotation; Ammunition tempObjAmmo = tempObj.GetComponent <Ammunition>(); //tempObj.GetComponent<Rigidbody>().velocity = GetComponentInParent<Rigidbody>().velocity; tempObjAmmo.damage = damage; tempObjAmmo.AddForce(bulletSpeed); }