public CaptiveCamp(GameObject gameObject, string name, string icon, EnemyType enemyType, Vector3 position, float trainTime) : base(gameObject, name, icon, SoldierType.Captive, position, trainTime) { mEnemyType = enemyType; mEnergyCostStrategy = new SoldierEnergyCostStrategy(); UpdateEnergyCost(); }
public CaptiveCamp(GameObject _gameObject, string _name, string _iconSprite, EnemyType _enemyType, Vector3 _position, float _trainTime) : base(_gameObject, _name, _iconSprite, SoldierType.Captive, _position, _trainTime) { energyCostStrategy = new SoldierEnergyCostStrategy(); enemyType = _enemyType; UpgradeEnergyCostStrategy(); }
public SoldierCamp(GameObject gameObject, string name, string icon, SoldierType soldierType, Vector3 pos, float trainTime, WeaponType weaponType = WeaponType.Gun, int lv = 1) : base(gameObject, name, icon, soldierType, pos, trainTime) { mLv = lv; mWeaponType = weaponType; mEnergyCostStrategy = new SoldierEnergyCostStrategy(); UpdateEnergyCost(); }
public SoldierCamp(GameObject _gameObject, string _name, string _iconSprite, SoldierType _soldierType, Vector3 _position, float _trainTime, int _lv = 1, WeaponType _weaponType = WeaponType.Gun) : base(_gameObject, _name, _iconSprite, _soldierType, _position, _trainTime) { energyCostStrategy = new SoldierEnergyCostStrategy(); nowLv = _lv; weaponType = _weaponType; UpgradeEnergyCostStrategy(); }
public SoldierCamp(GameObject gameObject, string name, string iconSprite, SoldierType soldierType, Vector3 position, float trainTime, WeaponType weaponType = WeaponType.Gun, int level = 1) : base(gameObject, name, iconSprite, soldierType, position, trainTime) { mLevel = level; mWeaponType = weaponType; mEnergyStrategy = new SoldierEnergyCostStrategy(); //初始化能量消耗 UpdateEnergyCost(); }
public SoldierCamp(GameObject gameObject, string name, string spriteName, SoldierType soldierType, Vector3 position, float trainTime, int lv = 1, WeaponType weaponType = WeaponType.Gun) : base(gameObject, name, spriteName, soldierType, position, trainTime) { mLv = lv; mWeaponType = weaponType; mEnergyCostStrategy = new SoldierEnergyCostStrategy(); UpgradeEnergyCost(); }