// 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); }
// Start is called before the first frame update void Start() { nText = GetComponent <Text>(); S = this; }