Hello, i m working on a phone game, and i would like to know how i could make a few save keys by default (currency1, currency2, etc)
And i don t fully understand how can i do that, i also don t understand what the defaultValue is.
Thanks!
How do i create save keys when the game build is created
-
- Posts: 24
- Joined: Sun Jun 12, 2022 8:30 am
-
- Posts: 24
- Joined: Sun Jun 12, 2022 8:30 am
Re: How do i create save keys when the game build is created
hello, i ve fixed the problem, i ve added a script in the main menu
void Start()
{
if (!ES3.KeyExists("Currency1"))
{
ES3.Save("Currency1", 0);
}
}
void Start()
{
if (!ES3.KeyExists("Currency1"))
{
ES3.Save("Currency1", 0);
}
}
Re: How do i create save keys when the game build is created
Glad you managed to find the solution.
All the best,
Joel
All the best,
Joel