private void OnEnable()
        {
            playerTransform = transform;
            playerPosition  = playerTransform.position;

            inputEventSubscription = PublisherSubscriber.Subscribe <InputEventArgs>(Move);
        }
Exemplo n.º 2
0
        private void OnEnable()
        {
            if (collectibleType == CollectibleType.Default)
            {
                collectibleItemEventSubscription =
                    PublisherSubscriber.Subscribe <CollectibleItemArgs>(CollectibleItemEventHandler);
            }

            if (collectibleType == CollectibleType.Enemy)
            {
                groundCompletedEventSubscription =
                    PublisherSubscriber.Subscribe <GroundCompletedEventArgs>(GroundCompleteEventHandler);
            }

            if (collectibleType == CollectibleType.Linker)
            {
                collectibleItemRigidbody.isKinematic = true;
            }
        }
Exemplo n.º 3
0
        private void OnEnable()
        {
            bombCanvas.SetActive(false);

            if (GameManager.TotalScore < GameManager.BombCount * GameManager.BombStep)
            {
                return;
            }
            if (IsBombEnabled)
            {
                return;
            }
            IsBombEnabled = true;
            isBomb        = true;
            GameManager.BombCount++;
            bombCanvas.SetActive(true);
            text.text = (countdown = Random.Range(8, 13)).ToString();

            gameEventSubscription = PublisherSubscriber.Subscribe <GameEventType>(GameEventHandler);
        }
Exemplo n.º 4
0
 private void OnEnable()
 {
     cameraEventSubscription = PublisherSubscriber.Subscribe <string>(OnCameraEventHandler);
 }
Exemplo n.º 5
0
 private void OnEnable()
 {
     gameEventSubscription = PublisherSubscriber.Subscribe <GameEventType>(Open);
 }
Exemplo n.º 6
0
 private void OnEnable()
 {
     levelStartEventSubscription    = PublisherSubscriber.Subscribe <GameEventType>(LevelStartEventHandler);
     collectedItemEventSubscription =
         PublisherSubscriber.Subscribe <CollectedItemArgs>(CollectedItemEventHandler);
 }
Exemplo n.º 7
0
 private void OnEnable()
 {
     progressBarSubscription = PublisherSubscriber.Subscribe <ProgressBarData>(ProgressBarDataHandler);
 }
Exemplo n.º 8
0
        private void OnEnable()
        {
            Flags = new List <ShowUpgradeFlag>();

            gameEventSubscription = PublisherSubscriber.Subscribe <GameEventType>(GameEventHandler);
        }
Exemplo n.º 9
0
 private void OnEnable()
 {
     gameEventSubscription  = PublisherSubscriber.Subscribe <GameEventType>(Move);
     resetEventSubscription = PublisherSubscriber.Subscribe <GameEventType>(ResetTransform);
 }
Exemplo n.º 10
0
 private void SubscribeToInput()
 {
     inputEventSubscription = PublisherSubscriber.Subscribe <InputEventArgs>(InputEventHandler);
 }
Exemplo n.º 11
0
 private void OnEnable()
 {
     inputEventSubscription = PublisherSubscriber.Subscribe <InputEventArgs>(Move);
 }
Exemplo n.º 12
0
    protected override void OnEnable()
    {
        base.OnEnable();

        inputEventSubscription = PublisherSubscriber.Subscribe <InputEventArgs>(InputEventHandler);
    }
Exemplo n.º 13
0
        private void OnEnable()
        {
            system = GetComponent <ParticleSystem>();

            genericEventTypeSubscription = PublisherSubscriber.Subscribe <GameEventType>(LevelCompleteEventHandler);
        }
Exemplo n.º 14
0
 private void OnEnable()
 {
     selectedGridItemsSubscription = PublisherSubscriber.Subscribe <SelectedGridItems>(OnSelectedGridItemsHandler);
     swipeSubscription             = PublisherSubscriber.Subscribe <SwipeDirection>(SwipeHandler);
     gameEventSubscription         = PublisherSubscriber.Subscribe <GameEventType>(GameEventHandler);
 }
Exemplo n.º 15
0
 private void OnEnable()
 {
     levelStartEventSubscription = PublisherSubscriber.Subscribe <GameEventType>(LevelStartEventHandler);
 }
Exemplo n.º 16
0
        private void OnEnable()
        {
            carDriveController = GetComponent <CarDriveController>();

            gameStateSubscription = PublisherSubscriber.Subscribe <GameState>(GameStateHandler);
        }
Exemplo n.º 17
0
        private void OnEnable()
        {
            score = 0;

            gameStateSubscription = PublisherSubscriber.Subscribe <GameState>(GameStateHandler);
        }
#pragma warning restore 649

        private void OnEnable()
        {
            changeInformationEventSubscription =
                PublisherSubscriber.Subscribe <InformationUIData>(ChangeInformationEventHandler);
        }
Exemplo n.º 19
0
 protected virtual void OnEnable()
 {
     gameEventSubscription = PublisherSubscriber.Subscribe <GameEventType>(OnGameEvent);
 }