Hello community.
I want to save my values of Toggles when they're true or false. But there's no PlayerPrefs.GetBool, soo how can I do it to save it through scenes when it's set on the option scene?
I've searched around but I haven't discovered the right method.
I'm using differents functions to manage Toggles.
Right now I've two. One for enable/disable keyboard and other for accelerometer.
void update()
{
OptionKeyboard()
OptionAccelerometer()
}
public void OptionKeyboard()
{
// Keyboard movement, etc
}
public void OptionAccelerometer()
{
// Accelerometer movement, etc
}
Those two functions checks if "Toggle.isOn = true or false"
How can I store it through scenes?
Thanks for the help.
Regards.
↧