Example #1
0
        private void OnDisable()
        {
            if (!isBomb)
            {
                return;
            }
            IsBombEnabled = false;
            isBomb        = false;

            PublisherSubscriber.Unsubscribe(gameEventSubscription);
        }
        private void OnDisable()
        {
            if (collectibleType == CollectibleType.Default)
            {
                PublisherSubscriber.Unsubscribe(collectibleItemEventSubscription);
            }

            if (collectibleType == CollectibleType.Enemy)
            {
                PublisherSubscriber.Unsubscribe(groundCompletedEventSubscription);
            }
        }
Example #3
0
 private void OnDisable()
 {
     PublisherSubscriber.Unsubscribe(cameraEventSubscription);
 }
Example #4
0
 private void OnDisable()
 {
     PublisherSubscriber.Unsubscribe(levelStartEventSubscription);
     PublisherSubscriber.Unsubscribe(collectedItemEventSubscription);
 }
Example #5
0
 private void UnsubscribeToInput()
 {
     PublisherSubscriber.Unsubscribe(inputEventSubscription);
 }
 private void OnDisable()
 {
     PublisherSubscriber.Unsubscribe(gameEventSubscription);
     PublisherSubscriber.Unsubscribe(resetEventSubscription);
 }
 private void InputEventHandler(InputEventArgs inputEventArgs)
 {
     PublisherSubscriber.Publish(GameEventType.StartGame);
     PublisherSubscriber.Unsubscribe(inputEventSubscription);
 }
 private void OnDisable()
 {
     PublisherSubscriber.Unsubscribe(genericEventTypeSubscription);
 }
Example #9
0
 private void OnDisable()
 {
     PublisherSubscriber.Unsubscribe(gameStateSubscription);
 }
 private void OnDisable()
 {
     PublisherSubscriber.Unsubscribe(changeInformationEventSubscription);
 }
Example #11
0
 protected virtual void OnDisable()
 {
     PublisherSubscriber.Unsubscribe(gameEventSubscription);
 }
Example #12
0
 private void OnDisable()
 {
     PublisherSubscriber.Unsubscribe(progressBarSubscription);
 }
Example #13
0
 private void OnDisable()
 {
     PublisherSubscriber.Unsubscribe(selectedGridItemsSubscription);
     PublisherSubscriber.Unsubscribe(swipeSubscription);
     PublisherSubscriber.Unsubscribe(gameEventSubscription);
 }