/// <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);
    }
Example #2
0
 void OnMouseDown()
 {
     Debug.Log("sdddsssssssssss");
     ScratchPanel.SetActive(false);
     SpecialPanel.SetActive(false);
     StorePanel.SetActive(false);
 }
    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();
    }
Example #5
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();
    }
Example #6
0
 public void OpenedScratchPanel()
 {
     ScratchPanel.SetActive(true);
     SpecialPanel.SetActive(false);
     StorePanel.SetActive(false);
 }
Example #7
0
 public void CloseStorePanel()
 {
     StorePanel.SetActive(false);
 }