private void tempStart() { int num = 0; if (daily) { DateTime now = DateTime.Now; section = Games.dailyPuzzles; set = section.sets[now.Month - 1]; game = set.levels[now.Day - 1]; game.mode = GameMode.DAILY; } else { num = ((levelToOpen != -1) ? levelToOpen : PlayerPrefsManager.GetLevel()); int[] levelInfo = FugoUtils.getLevelInfo(num); if (mode == GameMode.ADVENTURE) { section = Games.GetSection(adventureSectionId); set = section.getHiddenSet(adventureSetId); UnityEngine.Debug.Log(adventureGameId + " " + adventureSetId + " " + adventureSectionId); Adventure adventure = Games.adventure = new Adventure(section, set, set.getLevelsWithID(adventureGameId)); if (slidePos == 0) { Games.adventure.curPos = 0; } else { Games.adventure.curPos = slidePos - 1; } game = Games.adventure.Levels[Games.adventure.curPos]; game.setId = int.Parse(adventureSetId); game.mode = GameMode.ADVENTURE; UnityEngine.Debug.Log(game.part); if (game.adventure.Width == -1) { calculateSize(); } } else { section = Games.sections[levelInfo[0]]; set = section.sets[levelInfo[1]]; game = set.levels[levelInfo[2]]; } UnityEngine.Debug.Log("game name " + UISwapper.flipGame); name.gameObject.SetActive(value: true); } string path = "BGImages/" + set.bgImage; game.set = set; background.sprite = Resources.Load <Sprite>(path); background.gameObject.SetActive(value: true); newGame(game); if (UISwapper.flipGame) { StartCoroutine(ArabicText.fixAllNextFrame()); } name.color = HeaderColor; Color headerColor = HeaderColor; headerColor.a = 0f; name.color = headerColor; }