Fix hitboxes, add collision detection to maps

This commit is contained in:
2023-09-04 18:07:58 -07:00
parent 316651f409
commit 59a77d084c
14 changed files with 279 additions and 38 deletions

View File

@@ -1,4 +1,5 @@
using Godot;
using System.Linq;
public partial class Character1 : Character
{
@@ -76,4 +77,9 @@ public partial class Character1 : Character
await ToSignal(GetTree().CreateTimer(projectile.Cooldown), "timeout");
CanShoot = true;
}
public void OnHit(Node3D node)
{
_gameManager.CallDeferred(GameManager.MethodName.RemoveCharacter, this);
}
}