public void CompleteLevel(bool winGame) { levelComplete.SetTimeAmount(Time.timeSinceLevelLoad); levelComplete.SetCoinAmount(coinAmount.text); levelComplete.SetlevelMessage(winGame, Time.timeSinceLevelLoad, int.Parse(coinAmount.text)); // TODO: set history highest completeLevelUI.SetActive(true); }