void Awake() { foreach (GameID game in gameIds.GetAssets <GameID>()) { if (game.GetPlayCount() <= 0) { continue; } var microScript = Instantiate(interactibleIcon, content).GetComponent <AddGameIdPlaylist>(); microScript.thisGame = game; microScript.content = contentorPlaylist; } }
List <GameID> CreateListFromString(string code) { string[] ids = code.Split(';'); List <GameID> newList = new List <GameID>(); List <GameID> idsList = gameIds.GetAssets <GameID>().ToList(); foreach (GameID id in idsList) { string[] num = id.name.Split('_'); foreach (string str in ids) { if (str == num[0]) { newList.Add(id); } } } return(newList); }