예제 #1
0
 private void Start()
 {
     if (instance == null)
     {
         instance = this;
     }
     else if (instance == this)
     {
         Destroy(gameObject);
     }
 }
예제 #2
0
파일: Game.cs 프로젝트: D4rk3T/BumperImpact
 public void OpenNormalTickets()
 {
     GoldPanel.SetActive(false);
     NormalPanel.SetActive(true);
 }
예제 #3
0
 //初始化
 public void Init()
 {
     Instance      = this;
     goldText.text = GameData.Instance.gold.ToString();
 }