/// <summary> /// Hides the shop window & saves the state of bought items /// </summary> private void CloseShop() { _currentTab.Hide(); _screen.Close(); SaveManager.Save(); }
public void Play() { if (!isActive) { Select(); } else if (!shop.isClosing) { if (click != null) { LeanAudio.play(click, 0.2f); } //Select (); shop.Close(); FindObjectOfType <CharacterScript> ().SpawnChar(profile.id); //if (newChar.isPurchased){ Persistence.currentChar = id; LeanAudio.play(profile.specialVoice); // } //shop.isClosing = true; } }