Beeg checkin
This commit is contained in:
11
Player/Pisces/Attacks/SingleShot.cs
Normal file
11
Player/Pisces/Attacks/SingleShot.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user