示例#1
0
        public void SetUp(MapBlockManager mapBlockManager, MapGrid mapGrid, int unitCapacity)
        {
            gameSkillMapper   = new GameSkillMapper();
            gameDamageManager = new GameDamageManager(gameSkillMapper, mapBlockManager, mapGrid);

            unitList = new List <UnitInterface>(unitCapacity);

            UnitCountDict = new Dictionary <string, float>();
            UnitValueDict = new Dictionary <string, float>();
        }
示例#2
0
        public void SetUp(MonsterStats monsterStats, BaseStrategy strategy, MapGrid mapGrid, MapBlockManager mapBlockManager,
                          GameDamageManager gameDamageManager)
        {
            _monsterStats      = monsterStats;
            _strategy          = strategy;
            _mapGrid           = mapGrid;
            _mapBlockManager   = mapBlockManager;
            _gameDamageManager = gameDamageManager;

            currentState = ActiveState.Action;

            _hp           = _monsterStats.hp;
            _uniqueUnitID = gameObject.GetInstanceID();

            SetAnimator(monsterStats.animator);
        }