Beispiel #1
0
    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);
        }
    }