/// <summary> /// Menu home hide. /// </summary> /// <returns>The home hide.</returns> /// <param name="waitTime">Wait time.</param> IEnumerator MenuHomeHide(float waitTime) { yield return(new WaitForSeconds(waitTime)); MainMenuPanel.SetActive(false); StorePanel.SetActive(true); }
private void Awake() { if (instance == null) { instance = this; } }
void OnMouseDown() { Debug.Log("sdddsssssssssss"); ScratchPanel.SetActive(false); SpecialPanel.SetActive(false); StorePanel.SetActive(false); }
private void btnPOS_Click(object sender, EventArgs e) { pnlChoise.Visible = true; pnlChoise.Location = new Point(63, 124); StorePanel storePanel = new StorePanel(this); ShowInPanelControlManage(storePanel); }
public void choosePurchaseToBuy() { StorePanel _storePanel = GetComponentInParent <StorePanel>(); if (_storePanel) { _storePanel.consumeToGetItems(itemId, extraTrigger, itemNum); } }
IEnumerator OnGamePlay(float waitTime) { yield return(new WaitForSeconds(waitTime)); //SceneManager.LoadScene (1); SoundManager.Instance.PlayMusicGame(); StorePanel.SetActive(false); MainMenuPanel.SetActive(false); //SceneManager.LoadScene("MainGame"); SceneManager.LoadSceneAsync("Loading"); }
/// <summary> /// Menu store hide. /// </summary> /// <returns>The store hide.</returns> /// <param name="waitTime">Wait time.</param> IEnumerator MenuStoreHide(float waitTime) { yield return(new WaitForSeconds(waitTime)); // MainMenuPanel.SetActive(false); StorePanel.SetActive(false); MainMenuPanel.SetActive(true); Invoke("Do", 1f); MenuHome(); }
void StoreClick() { if (store == null) { Facade.ShowPanel <StorePanel>(panel => { panel.gameObject.SetActive(true); store = panel; }); return; } if (store.gameObject.activeSelf) { store.HidePanel(); } else { store.ShowPanel(); } }
void Start() { CoinText.text = "1000"; CoinText.text = PlayerPrefs.GetInt("k").ToString(); Debug.Log(winp); InvokeRepeating("OpenedStartPanel", 2, 0.3F); StartPanel.SetActive(true); StorePanel.SetActive(false); ScratchPanel.SetActive(false); SpecialPanel.SetActive(false); // int unixTime = (int)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds; // TimeSpan interval = TimeSpan.FromMilliseconds(unixTime); // string time = "h=" + interval.Hours.ToString() + " " + "m=" + interval.Minutes.ToString() + " " + "s=" + interval.Seconds.ToString() + " " + "ms=" + interval.Milliseconds.ToString(); Pres = (PlayerPrefs.GetInt("Name") != 0); //Debug.Log(time + "unixTime"); //PlayerPrefs.DeleteAll(); }
//// Update is called once per frame //void Update () { //} public void Populate(StorePanel store, ScriptableStoreItem item) { this.store = store; this.item = item; nameLabel.text = item.descriptiveName; if (item.thumbnail != null) { image.sprite = item.thumbnail; } buyBt.onClick.AddListener(() => { store.store.BuyItem(item); }); downloadBt.onClick.AddListener(() => { store.store.LoadItem(item); }); RefreshState(); }
private void Start() { button = GetComponent <Button>(); store = GetComponentInParent <StorePanel>(); }
void StoreClick() { if (store == null) { Facade.Instance.ShowPanel <StorePanel>(Utility.UI.GetUIFullRelativePath("StorePanel"), panel => { panel.gameObject.name = "StorePanel"; panel.gameObject.SetActive(true); store = panel; }); return; } if (store.gameObject.activeSelf) { store.HidePanel(); } else { store.ShowPanel(); } }
private void Awake() { img = GetComponent <Image>(); storePanel = GetComponentInParent <StorePanel>(); }
public void OpenedScratchPanel() { ScratchPanel.SetActive(true); SpecialPanel.SetActive(false); StorePanel.SetActive(false); }
public void CloseStorePanel() { StorePanel.SetActive(false); }
private void AddStoreButton_Click(object sender, EventArgs e) { StorePanel.BringToFront(); }