コード例 #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;
    }
コード例 #2
0
 private void Start()
 {
     tabAnchor.anchoredPosition = Vector2.right * HIDDEN_X;
     score = BonusCollectableList.GetWorldCollectedCount(GameplayData.currentWorld);
     UpdateDisplay();
 }