public void QuickSwapToNew() { if (newPanel.IsShowing) { newPanel.Hide(); newPanel.gameObject.SetActive(false); } oldPanel.gameObject.SetActive(true); oldPanel.Reveal(); if (newPanel.transform.FindChild("NewScroll").GetComponent <UIScrollList>().Count != 0) { noFriendsLabel.Text = ""; } else { noFriendsLabel.Text = "No New Challenges"; } newPanel.Reveal(); newPanel.gameObject.SetActive(true); if (oldPanel.IsShowing) { oldPanel.Hide(); oldPanel.gameObject.SetActive(false); } }
//public bool videoWasWatched = false; // Use this for initialization void Start() { //Invoke("GanheiItem",30); RefreshItemsScroll(true); GetComponent <UIInteractivePanel>().transitions.list[0].AddTransitionStartDelegate(InitShop); shopToggle.SetState(0); coinsPanel.Reveal(); goodsPanel.Hide(); }
void ShopToggle() { if (shopToggle.StateName == "Coins") { coinsPanel.Reveal(); if (goodsPanel.IsShowing) { goodsPanel.Hide(); } } else { if (coinsPanel.IsShowing) { coinsPanel.Hide(); } goodsPanel.Reveal(); } }