예제 #1
0
 // Start is called before the first frame update
 void Start()
 {
     coinScore = 0;
     life      = 3;
     scoreUI   = GameObject.Find("CoinScore").GetComponent <moneyUI>();
     lifeUI    = GameObject.Find("LifeScore").GetComponent <lifeUI>();
     scoreUI.UpdateScoreUI(coinScore);
     lifeUI.UpdateLifeUI(life);
 }
예제 #2
0
 // Start is called before the first frame update
 void Start()
 {
     nText = GetComponent <Text>();
     S     = this;
 }