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