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

@@ -2,8 +2,10 @@ using Godot;
public partial class Character : CharacterBody3D
{
public void OnHit(Node3D node)
private GameManager _gameManager;
public override void _Ready()
{
QueueFree();
_gameManager = GetTree().Root.GetNode<GameManager>("Main/GameManager");
}
}