public void Win(int coinsEarned) { _ui.Win(); _ui.EndGameCoins(coinsEarned); _data.CoinCount += coinsEarned; Time.timeScale = 0; }