Skip to content
Snippets Groups Projects
Commit 33418420 authored by Zeus-s's avatar Zeus-s
Browse files

feat: add cheat motherlode

parent 838f2571
No related merge requests found
......@@ -9,6 +9,7 @@ public class GameManager : MonoBehaviour
// General
[Header("General")]
public int coins = 0;
public int coinsLatest = 0;
// Shop Requirements
[Header("Shop Requirements")]
......@@ -63,13 +64,18 @@ public class GameManager : MonoBehaviour
void Start()
{
}
// Update is called once per frame
void Update()
{
coinsLatest = coins;
// if true set infinity if not set to value before
if (CheatMenu.motherlode) {
coins = 999999;
} else {
coins = coinsLatest;
}
}
public void NewPet(string name)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment