// 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);
 }
 public void AddScore(int value)
 {
     coinScore += value;
     scoreUI.UpdateScoreUI(coinScore);
 }