Esempio n. 1
0
        public IEnumerator FetchLevelData()
        {
            _levelToLoad        = DataService.Instance.GetCurrentLevel();
            _levelData          = DataService.Instance.GetLevels()[_levelToLoad];
            title.text          = "Level : " + (_levelToLoad + 1);
            starsCollected.text = String.Format("Stars Collected : {0}/{1}",
                                                DataService.Instance.GetStarsCollected(_levelToLoad), _levelData.AvailableStars());

            FillGoals();
            FillInventory();
            yield break;
        }