/// <summary> /// /// </summary> public static void InitializeTypes() { if (Initializer == null) { throw new ArgumentNullException(nameof(Initializer)); } CacheList.Clear(); var types = Initializer.GetTypeInfos().ToList(); types.ForEach(InitializeType); }
void IPoolDespawn.OnDespawned() { isSpawning = false; foreach (var ent in mSpawnedEntities) { if (ent) { EntityRegisterCallbacks(ent, false); } } mSpawnedEntities.Clear(); }
public override void Reset() { base.Reset(); foreach (var subEntity in _subEntities) { subEntity.Reset(); } _outLookup.Clear(); _inputBuffer.Clear(); _hashMemory.Clear(); State = Hash.Identity; }
public void CacheRemAndAdd() { var list = new CacheList <UserFriend>(); list.AddRange(new[] { new UserFriend() { UserId = 1001 }, new UserFriend() { UserId = 1002 }, }); var temp = list.ToArray(); list.Clear(); list.AddRange(temp); }
public override void Reset() { base.Reset(); _inOutHashMemory.Clear(); }