diff --git a/Assets/Scripts/Projectile.cs b/Assets/Scripts/Projectile.cs index c87fae9..d03ae9c 100644 --- a/Assets/Scripts/Projectile.cs +++ b/Assets/Scripts/Projectile.cs @@ -76,7 +76,7 @@ public class Projectile : MonoBehaviour } float x = _speedTime; - float y = (_angle*-Mathf.Pow(x, 2) + _destinationX * x) + float y = (_angle*-Mathf.Pow(x, 2) + _destinationX * x); transform.position = new Vector2(_initialX + x*_angle, _initialY + y);