Files
GameJam2023/Player/Pisces/Attacks/SingleShot.cs
2023-09-06 03:49:16 -07:00

12 lines
277 B
C#

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));
}
}