void TimerUpdate() { timerText.text = TIMER_CLASS.GetFormattedTime(); // string seconds = timerText.text.Substring (6,2).Replace(timerText.text.Substring (6,2), "<size=5>" + timerText.text.Substring (6,2) + "</size>"); //string seconds = timerText.text.Substring (6, 2); //timerText.text = timerText.text.Remove (6, 2); timerText.text = timerText.text.Remove(5, 3); // timerText.text = timerText.text.Insert (6, "<size=12>" + seconds + "</size>"); }
void UpdateBattlePositionText() { // get a string back from the timer to display on-screen timerText.text = theTimer.GetFormattedTime(); // get the current player position scoreboard from the battle manager and show it via posText.text posText.text = GlobalBattleManager.Instance.GetPositionListString(); // check the timer to see how much time we've been playing. If it's more than gameTime, // the game is over if (theTimer.GetTime() > gameTime) { // end the game BattleComplete(); } }
private void UpdateTimer_UI() { menuManager.UpdateTimer(theTimer.GetFormattedTime()); }