/// <summary> /// Dispatches OnDestroyEntity which will start the destroy process. /// </summary> public void Destroy() { if (!_isEnabled) { throw new EntityIsNotEnabledException("Cannot destroy " + this + "!"); } OnDestroyEntity?.Invoke(this); }
protected void DestroyEntity() { OnDestroyEntity?.Invoke(this); }