private void OnGameObjectDestroyed(IGameObject obj) { GameObjectDestroyed?.Invoke(obj); }
void OnDestroy() { GameObjectDestroyed?.Invoke(this); GameObjectDestroyed = null; // Extra precaution }
private void OnGameObjectDestroyed(IGameObject obj) { GameObjectDestroyed?.Invoke(obj); }
void OnDestroy() { GameObjectDestroyed?.Invoke(this); GameObjectDestroyed = null; // Extra precaution }