public void Setup() { WorldData worldData = GameplayData.GetWorldData(worldID); int bonusCount = BonusCollectableList.GetWorldCollectedCount(worldID); moonCountDisplay.text = bonusCount.ToString() + "/" + worldData.moonMax.ToString(); collectableCountDisplay.text = "x" + worldData.collectCount; }
private void UpdateData() { PlayerHealth.SaveHealth(); PlaytimeData.finishedStages++; CollectableDisplay.instance.SaveScore(); BonusCollectableManager.SaveCollectedStates(); WorldData worldData = GameplayData.GetWorldData(); worldData.collectCount = CollectableDisplay.instance.Score; }