Пример #1
0
    //private ScrolView


    // Use this for initialization
    void Start()
    {
        //// TEST ONLY //
        //LevelsDataManager.SaveLevelData("Air", 1, 17000,3);
        //LevelsDataManager.SaveLevelData("Air", 2, 17500, 2);
        //LevelsDataManager.SaveLevelData("Air", 3, 18000, 1);
        //LevelsDataManager.SaveLevelData("Earth", 1, 25000, 0);
        //LevelsDataManager.SaveLevelData("Earth", 2, 60000, 3);
        ///**********************************************************/

        //// TEST ONLY //
        //LevelsDataManager.SaveLevelData("Air", 1, 0, 0);
        //LevelsDataManager.SaveLevelData("Air", 2, 0, 0);
        //LevelsDataManager.SaveLevelData("Air", 3, 0, 0);
        //LevelsDataManager.SaveLevelData("Earth", 1, 0, 0);
        //LevelsDataManager.SaveLevelData("Earth", 2, 0, 0);
        ///**********************************************************/


        // Show all stars owned
        int[] allStars = LevelsDataManager.GetAllStarsFromWorld(GameManager.world);
        textMaxStars.text = allStars[0] + "/" + allStars[1];


        //Debug.Log("World: " + GameManager.world);
        levelsData = LevelsDataManager.GetLevelsData(GameManager.world);
        PopulateLevelSelector(GameManager.world);
    }
Пример #2
0
 void Start()
 {
     // Show all stars owned
     int[] allStars = LevelsDataManager.GetAllStarsFromWorld(transform.name);
     textAllStars.text = allStars[0] + " / " + allStars[1];
 }