Example #1
0
        public Unit(TeamFlag team, UnitInfo info, UnitView view, Battle battle)
        {
            Team  = team;
            _info = info;

            Health = MaxHealth;
            Mana   = 0;

            _logic = UnitLogicFactory.Create(info, this, battle);

            View    = view;
            _battle = battle;
            _state  = State.Spawn;
        }