public CharacterData(AttackAttribute attackAttribute, DefenseAttribute defenseAttribute, SpeedAttribute speedAttribute, HealthAttribute healthAttribute) { this.attackAttribute = attackAttribute; this.defenseAttribute = defenseAttribute; this.speedAttribute = speedAttribute; this.HealthAttribute = healthAttribute; }
public CharacterData(AttackAttribute attackAttribute, DefenseAttribute defenseAttribute, SpeedAttribute speedAttribute, HealthAttribute healthAttribute) { this.attackAttribute = attackAttribute; this.defenseAttribute = defenseAttribute; this.speedAttribute = speedAttribute; this.HealthAttribute = healthAttribute; }
private void Awake() { Speed = new SpeedAttribute(initialSpeed); Jump = new JumpAttribute(initialJump); WeaponDamage = new DmgAttribute(initialDamage); attributes = new List <CharacterAttribute>() { Speed, Jump, WeaponDamage }; modifications = new List <AttributeModification>(); }
private void CharacterTestDefault() { AttackAttribute attackAttribute = new AttackAttribute(1, 1.0f); DefenseAttribute defenseAttribute = new DefenseAttribute(1, 1.0f); HealthAttribute healthAttribute = new HealthAttribute(1, 1.0f); SpeedAttribute speedAttribute = new SpeedAttribute(1, 1.0f); this.character = new CharacterData(attackAttribute, defenseAttribute, speedAttribute, healthAttribute); Debug.Log("-----Default Stats------"); Debug.Log("Health: " + this.character.GetHealthAttribute().GetModifiedValue() + " Attack: " + this.character.GetAttackAttribute().GetModifiedValue() + " Defense: " + this.character.GetDefenseAttribute().GetModifiedValue() + " Speed: " + this.character.GetSpeedAttribute().GetModifiedValue()); Debug.Log("----Default Stats End----"); }
private void CharacterTestDefault() { AttackAttribute attackAttribute = new AttackAttribute(1, 1.0f); DefenseAttribute defenseAttribute = new DefenseAttribute(1, 1.0f); HealthAttribute healthAttribute = new HealthAttribute(1,1.0f); SpeedAttribute speedAttribute = new SpeedAttribute(1,1.0f); this.character = new CharacterData(attackAttribute, defenseAttribute, speedAttribute, healthAttribute); Debug.Log ("-----Default Stats------"); Debug.Log ("Health: " +this.character.GetHealthAttribute().GetModifiedValue() + " Attack: " +this.character.GetAttackAttribute().GetModifiedValue() + " Defense: " +this.character.GetDefenseAttribute().GetModifiedValue() + " Speed: " +this.character.GetSpeedAttribute().GetModifiedValue()); Debug.Log ("----Default Stats End----"); }