idk dude
This commit is contained in:
@@ -2,12 +2,6 @@ using Godot;
|
||||
|
||||
public partial class EnemyBullet : Projectile
|
||||
{
|
||||
|
||||
public override void _PhysicsProcess(double delta)
|
||||
{
|
||||
TranslateObjectLocal(new Vector3(0, 0, -Speed * (float)delta));
|
||||
}
|
||||
|
||||
public new void OnProjectileHit(Node node)
|
||||
{
|
||||
SetPhysicsProcess(false);
|
||||
@@ -15,7 +9,7 @@ public partial class EnemyBullet : Projectile
|
||||
if (node is Character character && character.HasMethod(Character.MethodName.OnHit))
|
||||
{
|
||||
GD.Print("Player hit: " + character.Name);
|
||||
character.Call(Character.MethodName.OnHit, node);
|
||||
character.Call(Character.MethodName.OnHit, this);
|
||||
}
|
||||
|
||||
QueueFree();
|
||||
|
||||
Reference in New Issue
Block a user