2024-04-05 10:52:30 +01:00
|
|
|
class_name Achievement extends Node
|
|
|
|
|
|
|
|
func UnlockAchievement(apiname : String):
|
2024-04-13 15:32:57 +01:00
|
|
|
if GlobalVariables.using_steam:
|
|
|
|
Steam.setAchievement(apiname)
|
|
|
|
Steam.storeStats()
|
2024-04-05 10:52:30 +01:00
|
|
|
|
|
|
|
func ClearAchievement(apiname : String):
|
2024-04-13 15:32:57 +01:00
|
|
|
if GlobalVariables.using_steam:
|
|
|
|
Steam.clearAchievement(apiname)
|
|
|
|
Steam.storeStats()
|