Ejemplo n.º 1
0
        public void Init(WeaponType weaponType, float damage, BulletsPool bulletsPool, VfxController vfxController)
        {
            Damage     = damage;
            WeaponType = weaponType;

            m_bulletsPool   = bulletsPool;
            m_vfxController = vfxController;
        }
Ejemplo n.º 2
0
        public void Init(VfxController vfxController, BulletsPool bulletsPool, IRestartGame restartGame)
        {
            m_restartGame = restartGame;

            m_tankWeaponChange.Init(m_tankData.prevWeaponButton, m_tankData.nextWeaponButton);
            m_tankMovement.Init(m_tankData.movementAxisName, m_tankData.turnAxisName,
                                m_tankData.speed, m_tankData.turnSpeed);
            m_healthController.Init(m_tankData.health, m_tankData.defense, this);
            m_tankShooting.Init(m_tankData.fireButton, m_tankWeaponChange, bulletsPool);
            m_tankDamageReceiver.Init(m_healthController, vfxController);
        }
Ejemplo n.º 3
0
 public void Init(string fireButton, TankWeaponChange tankWeaponChange, BulletsPool bulletsPool)
 {
     m_fireButton       = fireButton;
     m_tankWeaponChange = tankWeaponChange;
     m_bulletsPool      = bulletsPool;
 }