예제 #1
0
파일: Levels.cs 프로젝트: phiLyken/RC_1
    public void AddProgress(int amount)
    {
        currentProgress += amount;
        config.UpdateProgress(currentProgress);
        int current_level = GetCurrentLevel();

        OnProgress.AttemptCall(currentProgress);

        if (cachedLevel != current_level)
        {
            cachedLevel = current_level;
            OnLevelUp.AttemptCall(current_level);
        }
    }