Exemplo n.º 1
0
        private void Start()
        {
            var clearData         = RankLoader.GetClearRankData();
            var clearCount        = clearData.Count(x => x > 0);
            var maxRankClearCount = clearData.Count(x => x == 3);

            allClear.gameObject.SetActive(clearCount == Const.MAX_STAGE_COUNT);
            allRank.gameObject.SetActive(maxRankClearCount == Const.MAX_STAGE_COUNT);
        }
Exemplo n.º 2
0
        private static string GetClearText()
        {
            var rankData   = RankLoader.GetClearRankData();
            var clearCount = rankData.Count(x => x > 0);

            switch (clearCount)
            {
            case Const.MAX_STAGE_COUNT:
                var maxRankClearCount = rankData.Count(x => x == 3);
                var clearStatus       = maxRankClearCount == Const.MAX_STAGE_COUNT ? "★3で" : "";
                return($"全てのステージを{clearStatus}クリアした!");

            case 0:
                return($"1つもクリアできてない...");

            default:
                return($"ステージ{clearCount}までクリアした!");
            }
        }