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