Hi Guys ! I’ve created this simple script to unlock a character, but obviusly when i restart the game the destroyed button object is there ![]()
public void ToggleBallBlueButton()
{
GameManager.Instance.currency -= BallBlueCost;
GameManager.Instance.Save ();
BallBlueButton.SetActive (true);
Destroy (TgBallBlueButton);
}
There is a way ? Maybe with the PlayerPref to Destroy the button in all games ?