Fix issues

This commit is contained in:
2023-09-04 01:33:30 -07:00
parent 8eeca13607
commit 3738f24705
34 changed files with 306 additions and 159 deletions

16
Scripts/SingleShot.cs Normal file
View File

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