public void ShowResult(GameResult result) { timeLabel.text = string.Format("{0:00}.{1:000}", (int)result.playedTime, (int)(result.playedTime % 1 * 1000)); scoreLabel.text = result.score.ToString(); }
private void FinishGame() { owner.Storage.SaveData(DataStorageKeys.GAMERESULT_KEY, GameResult.GetRandomResult()); owner.ChangeState(new FinishState()); }