public void LoadArticles(string context) { if (context.StartsWith("EndGame")) { context += "/" + rankingManager.GetTopMedia(); } Debug.Log(context); foreach (Article article in ArticlesLoader.Instance.LoadArticles(context)) { AddArticle(article); checkMedia(article); } }
public void StartDay() { if (dayIndex < totalDays + 3) { string context = (++dayIndex <= totalDays) ? ("Day" + dayIndex) : ("EndGame/Day" + dayIndex); ArticlesHandler.Instance.LoadArticles(context); } else { EndGamePanel.SetActive(true); EndGamePanel.GetComponentInChildren <Text>().text += "\nVous avez eu la fin du media " + rankingManager.GetTopMedia(); } }