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>(); }
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); }