예제 #1
0
    public IEnumerator CoroutineGetScore()
    {
        ManagerDB.LunchGetGlobalScore();
        ManagerDB.CheckIsDone();

        while (!ManagerDB.isDone)
        {
            yield return(new WaitForSeconds(0.5f));

            ManagerDB.CheckIsDone();
        }

        List <ModelScore> listScores = ManagerDB.GetModels();

        yield return(null);
    }
    public IEnumerator CoroutineLoadGlobalRanking()
    {
        this.StopCoroutine("CoroutineFillGlobalRankingScore");
        this.loader.SetActive(true);
        ManagerDB.LunchGetGlobalScore();
        ManagerDB.CheckIsDone();

        while (!ManagerDB.isDone)
        {
            Debug.Log("wait");
            yield return(new WaitForSeconds(0.5f));

            ManagerDB.CheckIsDone();
        }

        this.globalScores = ManagerDB.GetModels();

        this.StartCoroutine("CoroutineFillGlobalRankingScore");
        yield return(null);
    }