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