public void SetCommanderAttributes(CommanderData data) { //Data members this.commanderName = data.CharName; this.selectedCommanderPrefabPath = data.PrefabPath; this.hp = data.HP; this.handSize = data.CurrentHandSize; this.abilityChargeCost = data.AbilityChargeCost; this.abilityChargeType = data.AbilityChargeType; this.commanderData = data; this.abilityTargetType = data.AbilityTargetType; this.manaPerTurn = data.ManaPerTurn; Debug.Log("(2) SetCommanderAttributes called by " + data.CharName); }
public CommanderData(string characterName, GameConstants.CardCommanderType cardCommanderType, int commanderHP, int startingHandSize, string prefabResourcePath, GameConstants.CommanderAbilityChargeType abilityChargeType, int abilityChargeCost, GameConstants.CommanderAbilityTargetType abilityTargetType, List <CardEntry> deck) { this._charName = characterName; this._cardCommanderType = cardCommanderType; this._hp = commanderHP; this._startingHandSize = startingHandSize; this._prefabPath = prefabResourcePath; //Initialize other values this._currentHandSize = this._startingHandSize; this._maxHp = this._hp; this._abilityChargeType = abilityChargeType; this._abilityChargeCost = abilityChargeCost; this._abilityTargetType = abilityTargetType; this._deck = deck; }