using Godot; using System.Linq; public partial class SingleShot : Projectile { public override void _PhysicsProcess(double delta) { var pellet = GetChildren().OfType().Single(); pellet.Translate(new Vector3(0, 0, Speed * -(float)delta)); } private void OnBulletHitObject(Node node) { QueueFree(); } }