Exemplo n.º 1
0
        private void OnDisable()
        {
            ComponentLocator.Unregister(this.GetType());

            EventManager.DispatchEvent(ConstantEventsName.ON_GAMEPLAY_CAMERA_ENABLE, false);
        }
Exemplo n.º 2
0
        private void OnDestroy()
        {
            ComponentLocator.Unregister(this.GetType());

            EventManager.DispatchEvent(ConstantEventsName.ON_PLAYER_SPACESHIP_DESTROY);
        }
Exemplo n.º 3
0
 protected virtual void OnDestroy()
 {
     ComponentLocator.Unregister(component.GetType());
 }
        protected void OnDestroy()
        {
            ComponentLocator.Unregister(component.GetType());

            CustomOnDestroy();
        }