Exemple #1
0
    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;
    }
Exemple #2
0
    private void UpdateData()
    {
        PlayerHealth.SaveHealth();
        PlaytimeData.finishedStages++;
        CollectableDisplay.instance.SaveScore();
        BonusCollectableManager.SaveCollectedStates();

        WorldData worldData = GameplayData.GetWorldData();

        worldData.collectCount = CollectableDisplay.instance.Score;
    }