/// <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);
    }
示例#2
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
示例#3
0
 void OnMouseDown()
 {
     Debug.Log("sdddsssssssssss");
     ScratchPanel.SetActive(false);
     SpecialPanel.SetActive(false);
     StorePanel.SetActive(false);
 }
示例#4
0
        private void btnPOS_Click(object sender, EventArgs e)
        {
            pnlChoise.Visible  = true;
            pnlChoise.Location = new Point(63, 124);

            StorePanel storePanel = new StorePanel(this);

            ShowInPanelControlManage(storePanel);
        }
示例#5
0
    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();
    }
示例#8
0
 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();
     }
 }
示例#9
0
    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();
    }
示例#10
0
    //// 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();
    }
示例#11
0
 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();
     }
 }
示例#13
0
 private void Awake()
 {
     img        = GetComponent <Image>();
     storePanel = GetComponentInParent <StorePanel>();
 }
示例#14
0
 public void OpenedScratchPanel()
 {
     ScratchPanel.SetActive(true);
     SpecialPanel.SetActive(false);
     StorePanel.SetActive(false);
 }
示例#15
0
 public void CloseStorePanel()
 {
     StorePanel.SetActive(false);
 }
示例#16
0
 private void AddStoreButton_Click(object sender, EventArgs e)
 {
     StorePanel.BringToFront();
 }