public void CreateCharacters(int wave) { string[] ids = m_lstCharID[wave]; string[] counts = m_lstCharCount[wave]; int count = 0; int indexMonster = 0, indexBoss = 0; for (int i = 0; i < ids.Length; ++i) { count = int.Parse(counts[i]); if (count > 0) { for (int j = 0; j < count; ++j) { BattleCharCreator.CreateMonster(BattleEnum.Enum_CharSide.Enemy, int.Parse(ids[i]), i, MonsterSpawn[indexMonster].position, MonsterSpawn[indexMonster].rotation, j); ++indexMonster; } } else { for (int j = 0; j < -count; ++j) { BattleCharCreator.CreateBoss(BattleEnum.Enum_CharSide.Enemy, int.Parse(ids[i]), i, BossSpawn[indexBoss].position, BossSpawn[indexBoss].rotation); ++indexBoss; } } } }
public CharHandler CreateHeroM(int heroId, int heroIndex) { return(BattleCharCreator.CreateHero(BattleEnum.Enum_CharSide.Mine, heroId, heroIndex, Heroes[0].position, Heroes[0].rotation)); }