private void OnDisable() { ComponentLocator.Unregister(this.GetType()); EventManager.DispatchEvent(ConstantEventsName.ON_GAMEPLAY_CAMERA_ENABLE, false); }
private void OnDestroy() { ComponentLocator.Unregister(this.GetType()); EventManager.DispatchEvent(ConstantEventsName.ON_PLAYER_SPACESHIP_DESTROY); }
protected virtual void OnDestroy() { ComponentLocator.Unregister(component.GetType()); }
protected void OnDestroy() { ComponentLocator.Unregister(component.GetType()); CustomOnDestroy(); }