示例#1
0
        public override void Init(GameObjectsPoolContoller poolController)
        {
            base.Init(poolController);
            _rigidbody = this.GetComponent <Rigidbody2D>();
            _triggerScreenBorders.Init(this.transform);
            _bulletCollider.Init(this);
            SetDesignDataSettings();

                        #if UNITY_EDITOR
            PoolController.Dispatcher.AddHandler(EventNames.UPDATE_BULLETS_DESIGN_DATA, SetDesignDataSettings);
                        #endif
        }
示例#2
0
        private void InitializeModules()
        {
            _triggerScreenBorders.Init(this.transform);
            _triggerBullets.Init(this);
            _triggerAsteroids.Init(this);

            PlayerMoving.Init(this);
            PlayerShooting.Init(this);
            _playerDisabledBehaviour.Init(this);
            _playerAliveBehaviour.Init(this);
            _playerDyingBehaviour.Init(this);
        }