Exemplo n.º 1
0
    public IEnumerator CoroutineForLevelProgress()
    {
        GameBean gameData = GetGameData();

        while (GetGameData().gameStatus == GameStatusEnum.GameIng)
        {
            yield return(new WaitForSeconds(0.1f));

            float exp = handler_GameData.GetLevelSceneExp(gameData.levelForScene);
            gameData.AddLevelProgressForScene(exp);
        }
    }