What would i type in Javascript for
Every 3 Seconds -3 to Playerprefs.GetInt(“HealthAmount”);?
Help would be much appreciated ![]()
What would i type in Javascript for
Every 3 Seconds -3 to Playerprefs.GetInt(“HealthAmount”);?
Help would be much appreciated ![]()
You wouldn’t; saving to PlayerPrefs is for persistent storage only and not something you do every 3 seconds. If you’re asking how to decrease a variable repeatedly, use InvokeRepeating.
–Eric