15 lines
261 B
C#
15 lines
261 B
C#
using Godot;
|
|
|
|
public partial class TestBullet : Projectile
|
|
{
|
|
public override void _PhysicsProcess(double delta)
|
|
{
|
|
Translate(new Vector3(0, 0, Speed * -(float)delta));
|
|
}
|
|
|
|
private void OnBulletHitObject(Node node)
|
|
{
|
|
QueueFree();
|
|
}
|
|
}
|