12 lines
295 B
GDScript
12 lines
295 B
GDScript
class_name Achievement extends Node
|
|
|
|
func UnlockAchievement(apiname : String):
|
|
if GlobalVariables.using_steam:
|
|
Steam.setAchievement(apiname)
|
|
Steam.storeStats()
|
|
|
|
func ClearAchievement(apiname : String):
|
|
if GlobalVariables.using_steam:
|
|
Steam.clearAchievement(apiname)
|
|
Steam.storeStats()
|