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