Use World singleton

refactor
John Montagu, the 4th Earl of Sandvich 2024-06-06 09:21:39 -07:00
parent a67dedf3f9
commit 4f3d5dd316
Signed by: sandvich
GPG Key ID: 9A39BE37E602B22D
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ public partial class Spawner : Node2D
var chr = Character.Instantiate<Characters.Character>(); var chr = Character.Instantiate<Characters.Character>();
chr.GlobalPosition = randPos; chr.GlobalPosition = randPos;
this.GetAncestor<Scenes.Map>().Entities.AddChild(chr); World.Instance.CurrentMap.Entities.AddChild(chr);
} }
} }
} }