Ejemplo n.º 1
0
    public void PlayerDied()
    {
        //dataScore = DatabaseManager.GetScore(PlayerInformation.IsHard);
        if (PlayerInformation.IsHard)
        {
            dataScore = PlayerInformation.BestScore;
        }
        else
        {
            dataScore = PlayerInformation.EasyBestScore;
        }

        DatabaseManager.UpdateMoney(totalSoulCount);
        PlayerInformation.PlayNum += dataPlayNum + 1;
        DatabaseManager.SetPlayNum(PlayerInformation.PlayNum);

        PlayerInformation.AchievementPlayNum();
        PlayerInformation.AchievementOncePlay(totalSoulCount, totalGetItemCount);
        PlayerInformation.AchievementScore(totalScore);

        StartCoroutine(ShowDiedPanelFadeIn());
    }