Add debug menu, add ability to load next floor or spawn item
This commit is contained in:
@@ -87,7 +87,7 @@ public partial class Enemy : CharacterBody3D, IEnemy, IProvide<IEnemyLogic>
|
||||
_lineOfSight.BodyEntered += LineOfSight_BodyEntered;
|
||||
}
|
||||
|
||||
public void OnProcess(double delta)
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
if (CurrentHP.Value <= 0)
|
||||
return;
|
||||
@@ -159,7 +159,7 @@ public partial class Enemy : CharacterBody3D, IEnemy, IProvide<IEnemyLogic>
|
||||
_knockbackStrength = 0.3f;
|
||||
}
|
||||
|
||||
public void Die()
|
||||
public virtual void Die()
|
||||
{
|
||||
SetProcess(false);
|
||||
CurrentHP.OnNext(0);
|
||||
|
||||
Reference in New Issue
Block a user