예제 #1
0
파일: BattleUnit.cs 프로젝트: jayrulez/TOH
        public BattleUnit(PlayerUnit playerUnit)
        {
            Unit         = playerUnit;
            State        = BattleUnitState.Alive;
            StatModifier = new StatModifier();

            foreach (var statType in Enum.GetValues(typeof(UnitStatType)).Cast <UnitStatType>())
            {
                Stats.Add(statType, Unit.GetStatValue(statType));
            }
        }