private void MakeCharacter(HeroCard card) { Class = card; MaxHp = 3; Hp = Random.Range(1, 3); SkillPoint = Random.Range(1, 25); Level = HeroLevel.Rookie; Attributes = new List<Pair<Stat, int>> { Pairs.Make(card.Main, 3), Pairs.Make(card.Secondary, 2) }; Name = "Char " + Random.Range(0, 99999); HeroState = State.Free; }
public Character(HeroCard card) { MakeCharacter(card); }