diff --git a/Assets/Scripts/Towers/Specific towers/Axe turret/AxeProjectile.cs b/Assets/Scripts/Towers/Specific towers/Axe turret/AxeProjectile.cs index ef3901ad..4293efa0 100644 --- a/Assets/Scripts/Towers/Specific towers/Axe turret/AxeProjectile.cs +++ b/Assets/Scripts/Towers/Specific towers/Axe turret/AxeProjectile.cs @@ -9,7 +9,7 @@ public class AxeProjectile : MonoBehaviour void Start() { - Destroy(gameObject, 10f); + Destroy(gameObject, 1f); } void OnTriggerEnter(Collider other) diff --git a/Assets/Scripts/Towers/Specific towers/Axe turret/AxeTowerAnimationController.cs b/Assets/Scripts/Towers/Specific towers/Axe turret/AxeTowerAnimationController.cs index 5ddc88da..4df2f8ff 100644 --- a/Assets/Scripts/Towers/Specific towers/Axe turret/AxeTowerAnimationController.cs +++ b/Assets/Scripts/Towers/Specific towers/Axe turret/AxeTowerAnimationController.cs @@ -21,7 +21,7 @@ public void Grab() public void Shoot() { handAxe.enabled = false; - Rigidbody projectileBody = Instantiate(axeProjectilePrefab, spawnPoint.position, spawnPoint.rotation) + Rigidbody projectileBody = Instantiate(axeProjectilePrefab, spawnPoint.position, spawnPoint.rotation, transform) .GetComponent(); projectileBody.velocity = forwardTransform.right * projectileSpeed; }