reset entity tag on Destroy

main
cosmonaut 2024-02-27 15:48:00 -08:00
parent 3b460cf326
commit 3e60d2dff2
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using MoonTools.ECS.Collections; using MoonTools.ECS.Collections;
@ -150,6 +150,8 @@ public class World : IDisposable
// recycle ID // recycle ID
EntityIdAssigner.Unassign(entity.ID); EntityIdAssigner.Unassign(entity.ID);
EntityTags[(int) entity.ID] = "";
} }
// COMPONENTS // COMPONENTS