protected override void OnReInit() { entityId2Entity = EntityMap.Allocate(); entityCacheGroup = EntityMapCacheGroup.Allocate(entityId2Entity); SnapshotSeq = 0; ServerTime = 0; }
protected void CleanUp() { entityId2Entity.ReleaseReference(); entityId2Entity = null; entityCacheGroup.InvalidCache(); EntityMapCacheGroup.Free(entityCacheGroup); entityCacheGroup = null; }