IEnumerator Shooting() { _curve = new GravitationalCurve(transform.position, destination.position, duration, Physics.gravity); foreach (var p in _curve.Go()) { bullet.position = p; yield return null; } _curve = null; }
IEnumerator Shooting() { _curve = new GravitationalCurve(transform.position, destination.position, duration, Physics.gravity); foreach (var p in _curve.Go()) { bullet.position = p; yield return(null); } _curve = null; }