public LevelData InitLevelData(THEME_ID id) { levelData = null; switch (id) { case THEME_ID.Logo: levelData = Resources.Load <LevelData>("Prefabs/data/LevelDataLogo"); break; case THEME_ID.Student: levelData = Resources.Load <LevelData>("Prefabs/data/LevelDataStudent"); break; default: levelData = Resources.Load <LevelData>("Prefabs/data/LevelDataLogo"); break; } return(levelData); }
void OnClickThemeBtn(THEME_ID theme) { SceneManager.LoadScene("SelectLevel"); DataMgr.Instance().themeId = theme; }