public void AddEnemyByID(string ID) { ElementIndex t = ResourcesManager.instance.GetEnemyIndex(ID); try{ EnemiesType obj = ResourcesManager.instance.enemiesPool [t.first] [t.second]; List <EnemiesType> l = new List <EnemiesType> (); l.Add(obj); boardScript.LayoutObjectAtRandom_Enemy(l, 1, 1); }catch { return; } }