private void Start() { if (instance == null) { instance = this; } else if (instance == this) { Destroy(gameObject); } }
public void OpenNormalTickets() { GoldPanel.SetActive(false); NormalPanel.SetActive(true); }
//初始化 public void Init() { Instance = this; goldText.text = GameData.Instance.gold.ToString(); }