void Start()
        {
            sendScoreButton.interactable = false;
            _board     = RankingLoader.Instance.CurrentRanking;
            _lastScore = RankingLoader.Instance.LastScore;

            StartCoroutine(GetHighScoreAndRankingBoard());
        }
Exemple #2
0
        /// <summary>
        /// ランキング表示を行います
        /// </summary>
        public void ShowRanking(int boardId = 0)
        {
            var board = RankingBoards.GetRankingInfo(boardId);
            var score = new NumberScore(0, board.CustomFormat);

            CurrentRanking = board;
            LastScore      = score;
            SceneManager.LoadScene("RankingOnly", LoadSceneMode.Additive);
        }
        void Start()
        {
            sendScoreButton.interactable = false;
            _board     = RankingLoader.Instance.CurrentRanking;
            _lastScore = RankingLoader.Instance.LastScore;

            Debug.Log(BoardIdPlayerPrefsKey + "=" + PlayerPrefs.GetString(BoardIdPlayerPrefsKey, null));

            StartCoroutine(GetHighScoreAndRankingBoard());
        }
Exemple #4
0
        private void SendScoreAndShowRanking(IScore score, RankingInfo board)
        {
            if (board.Type != score.Type)
            {
                throw new ArgumentException("スコアの型が違います。");
            }

            CurrentRanking = board;
            LastScore      = score;
            SceneManager.LoadScene("Ranking", LoadSceneMode.Additive);
        }
        void Start()
        {
            sendScoreButton.interactable = false;
            _board     = RankingLoader.Instance.CurrentRanking;
            _lastScore = RankingLoader.Instance.LastScore;

            Debug.Log(BoardIdPlayerPrefsKey + "=" + PlayerPrefs.GetString(BoardIdPlayerPrefsKey, null));

            renkei = GameObject.Find("Renkeier").GetComponent <Renkeier>();

            StartCoroutine(GetHighScoreAndRankingBoard());
        }