// Use this for initialization public void goldStoreOpen() { buttonClick += 1; if (buttonClick % 2 == 1) { goldStore.SetActive(true); another1.SetActive(false); another2.SetActive(false); another3.SetActive(false); stateTabbarButton = GameObject.Find("StateTabbarButton").GetComponent <StateTabbarButton>(); stateTabbarButton.buttonClick = 0; characterStoreButton = GameObject.Find("CharacterStoreButton").GetComponent <CharacterStoreButton>(); characterStoreButton.buttonClick = 0; theDishesTabbarButton = GameObject.Find("TheDishesTabbarButton").GetComponent <TheDishesStore>(); theDishesTabbarButton.buttonClick = 0; } else { goldStore.SetActive(false); buttonClick = 0; } }
public void TheDishesLobbyExit() { theDishesTabbarButton = GameObject.Find("TheDishesTabbarButton").GetComponent <TheDishesStore>(); theDishesTabbarButton.buttonClick = 0; theDishesLobby.SetActive(false); }