private void OnEnable() { playerTransform = transform; playerPosition = playerTransform.position; inputEventSubscription = PublisherSubscriber.Subscribe <InputEventArgs>(Move); }
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; } }
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); }
private void OnEnable() { cameraEventSubscription = PublisherSubscriber.Subscribe <string>(OnCameraEventHandler); }
private void OnEnable() { gameEventSubscription = PublisherSubscriber.Subscribe <GameEventType>(Open); }
private void OnEnable() { levelStartEventSubscription = PublisherSubscriber.Subscribe <GameEventType>(LevelStartEventHandler); collectedItemEventSubscription = PublisherSubscriber.Subscribe <CollectedItemArgs>(CollectedItemEventHandler); }
private void OnEnable() { progressBarSubscription = PublisherSubscriber.Subscribe <ProgressBarData>(ProgressBarDataHandler); }
private void OnEnable() { Flags = new List <ShowUpgradeFlag>(); gameEventSubscription = PublisherSubscriber.Subscribe <GameEventType>(GameEventHandler); }
private void OnEnable() { gameEventSubscription = PublisherSubscriber.Subscribe <GameEventType>(Move); resetEventSubscription = PublisherSubscriber.Subscribe <GameEventType>(ResetTransform); }
private void SubscribeToInput() { inputEventSubscription = PublisherSubscriber.Subscribe <InputEventArgs>(InputEventHandler); }
private void OnEnable() { inputEventSubscription = PublisherSubscriber.Subscribe <InputEventArgs>(Move); }
protected override void OnEnable() { base.OnEnable(); inputEventSubscription = PublisherSubscriber.Subscribe <InputEventArgs>(InputEventHandler); }
private void OnEnable() { system = GetComponent <ParticleSystem>(); genericEventTypeSubscription = PublisherSubscriber.Subscribe <GameEventType>(LevelCompleteEventHandler); }
private void OnEnable() { selectedGridItemsSubscription = PublisherSubscriber.Subscribe <SelectedGridItems>(OnSelectedGridItemsHandler); swipeSubscription = PublisherSubscriber.Subscribe <SwipeDirection>(SwipeHandler); gameEventSubscription = PublisherSubscriber.Subscribe <GameEventType>(GameEventHandler); }
private void OnEnable() { levelStartEventSubscription = PublisherSubscriber.Subscribe <GameEventType>(LevelStartEventHandler); }
private void OnEnable() { carDriveController = GetComponent <CarDriveController>(); gameStateSubscription = PublisherSubscriber.Subscribe <GameState>(GameStateHandler); }
private void OnEnable() { score = 0; gameStateSubscription = PublisherSubscriber.Subscribe <GameState>(GameStateHandler); }
#pragma warning restore 649 private void OnEnable() { changeInformationEventSubscription = PublisherSubscriber.Subscribe <InformationUIData>(ChangeInformationEventHandler); }
protected virtual void OnEnable() { gameEventSubscription = PublisherSubscriber.Subscribe <GameEventType>(OnGameEvent); }