private void Clear() { Post(new EntityDisposed(this)); MonoBehaviourToEntity.Unregister(this); EntityController.FinishDeleteEntity(this); Id = -1; Name = "Destroyed"; ClearParent(); Tr = null; _eventHub.Clear(); Tags.Clear(); Stats.Clear(); }
private void Clear() { this.Post(new EntityDisposed(this)); UnityToEntityBridge.Unregister(this); EntityController.FinishDeleteEntity(this); _components.Clear(); Id = -1; Name = "Destroyed"; ClearParent(); if (_tags != null) { _tagPool.Store(_tags); _tags = null; } }