protected override void Start()
        {
            var gameEventBus = GameManager.Instance.EventBus;

            gameEventBus.Subscribe <BallDestroyByGiantLaserEventArgs>(OnBallDestroyed);
            _simpleObjectPool             = GetComponent <SimpleObjectPool>();
            _floatingScoreEffectGenerator = FloatingScoreGenerator.GetComponent <FloatingScoreEffectGenerator>();
        }
Exemplo n.º 2
0
        void Start()
        {
            var gameEventBus = GameManager.Instance.EventBus;

            gameEventBus.Subscribe <BallGridMatchArgs>(OnMatchFound);

            _simpleObjectPool                = GetComponent <SimpleObjectPool>();
            _floatingScoreEffectGenerator    = FloatingScoreGenerator.GetComponent <FloatingScoreEffectGenerator>();
            _powerGemParticleEffectGenerator = PowerGemEffectGenerator.GetComponent <PowerGemParticleEffectGenerator>();
        }