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

            inputEventSubscription = PublisherSubscriber.Subscribe <InputEventArgs>(Move);
        }
예제 #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;
            }
        }
예제 #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);
        }
예제 #4
0
 private void OnEnable()
 {
     cameraEventSubscription = PublisherSubscriber.Subscribe <string>(OnCameraEventHandler);
 }
예제 #5
0
 private void OnEnable()
 {
     gameEventSubscription = PublisherSubscriber.Subscribe <GameEventType>(Open);
 }
예제 #6
0
 private void OnEnable()
 {
     levelStartEventSubscription    = PublisherSubscriber.Subscribe <GameEventType>(LevelStartEventHandler);
     collectedItemEventSubscription =
         PublisherSubscriber.Subscribe <CollectedItemArgs>(CollectedItemEventHandler);
 }
예제 #7
0
 private void OnEnable()
 {
     progressBarSubscription = PublisherSubscriber.Subscribe <ProgressBarData>(ProgressBarDataHandler);
 }
예제 #8
0
        private void OnEnable()
        {
            Flags = new List <ShowUpgradeFlag>();

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

        inputEventSubscription = PublisherSubscriber.Subscribe <InputEventArgs>(InputEventHandler);
    }
예제 #13
0
        private void OnEnable()
        {
            system = GetComponent <ParticleSystem>();

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

            gameStateSubscription = PublisherSubscriber.Subscribe <GameState>(GameStateHandler);
        }
예제 #17
0
        private void OnEnable()
        {
            score = 0;

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

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