Fix issues
This commit is contained in:
@@ -14,12 +14,12 @@ public partial class MeleeEnemy : BasicEnemy
|
||||
var convertedPlayers = players.Select(x => (Node3D)x);
|
||||
var target = convertedPlayers.OrderBy(x => Position.DistanceTo(x.Position)).FirstOrDefault();
|
||||
Position = Position.MoveToward(target.Position, _speed * (float)delta);
|
||||
MoveAndSlide();
|
||||
//MoveAndSlide();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public partial class BasicEnemy : CharacterBody3D
|
||||
public partial class BasicEnemy : Node3D
|
||||
{
|
||||
public void OnHit(Node3D node)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user