Exemple #1
0
    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);
    }
Exemple #2
0
 void OnClickThemeBtn(THEME_ID theme)
 {
     SceneManager.LoadScene("SelectLevel");
     DataMgr.Instance().themeId = theme;
 }