diff options
| author | chai <215380520@qq.com> | 2024-05-20 22:36:58 +0800 |
|---|---|---|
| committer | chai <215380520@qq.com> | 2024-05-20 22:36:58 +0800 |
| commit | a22c505984697881f5f911a165ee022087b69e09 (patch) | |
| tree | d3c030aef1ae9b8a01c889dd2902bb1e3324e72b /Thronefall_1_0/Decompile/AchievementManager.cs | |
| parent | 4a4cc82d069b26bc4d4532e73860f86b211ca239 (diff) | |
Diffstat (limited to 'Thronefall_1_0/Decompile/AchievementManager.cs')
| -rw-r--r-- | Thronefall_1_0/Decompile/AchievementManager.cs | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/Thronefall_1_0/Decompile/AchievementManager.cs b/Thronefall_1_0/Decompile/AchievementManager.cs deleted file mode 100644 index 0cedf23..0000000 --- a/Thronefall_1_0/Decompile/AchievementManager.cs +++ /dev/null @@ -1,78 +0,0 @@ -using System; -using Steamworks; -using UnityEngine; - -public class AchievementManager : MonoBehaviour -{ - public enum Achievements - { - START_TUTORIAL, - COMPLETE_TUTORIAL, - NORDFELS_BEATEN, - NORDFELS_QUESTSCOMPLETE, - DURSTSTEIN_BEATEN, - DURSTSTEIN_QUESTSCOMPLETE, - FROSTSEE_BEATEN, - FROSTSEE_QUESTSCOMPLETE, - MAXLEVEL_REACHED - } - - public static void UnlockAchievement(Achievements _achievement) - { - if (SteamManager.Initialized) - { - SteamUserStats.SetAchievement(_achievement.ToString()); - } - } - - public static void ResetAllAchievements() - { - if (!Application.isPlaying) - { - Debug.LogWarning("Warning: Resetting achievements only works while in play mode."); - return; - } - string[] names = Enum.GetNames(typeof(Achievements)); - for (int i = 0; i < names.Length; i++) - { - SteamUserStats.ClearAchievement(names[i]); - } - } - - public static void LevelBeaten(string _scene) - { - if (_scene == "Neuland(Tutorial)") - { - UnlockAchievement(Achievements.START_TUTORIAL); - UnlockAchievement(Achievements.COMPLETE_TUTORIAL); - } - if (_scene == "Nordfels") - { - UnlockAchievement(Achievements.NORDFELS_BEATEN); - } - if (_scene == "Durststein") - { - UnlockAchievement(Achievements.DURSTSTEIN_BEATEN); - } - if (_scene == "Frostsee") - { - UnlockAchievement(Achievements.FROSTSEE_BEATEN); - } - } - - public static void LevelAllQuestsComplete(string _scene) - { - if (_scene == "Nordfels") - { - UnlockAchievement(Achievements.NORDFELS_QUESTSCOMPLETE); - } - if (_scene == "Durststein") - { - UnlockAchievement(Achievements.DURSTSTEIN_QUESTSCOMPLETE); - } - if (_scene == "Frostsee") - { - UnlockAchievement(Achievements.FROSTSEE_QUESTSCOMPLETE); - } - } -} |
