Refactor Player and Character

This commit is contained in:
2023-09-04 06:42:02 -07:00
parent a8ea40dee8
commit c32bbfe45a
16 changed files with 132 additions and 206 deletions

View File

@@ -9,7 +9,7 @@ public partial class TestEnemy : RigidBody3D
public override void _Process(double delta)
{
var player = GetTree().GetFirstNodeInGroup("Player") as Player1;
var player = GetTree().GetFirstNodeInGroup("Player") as Character;
if (player != null)
LookAt(player.Position);
}