Beispiel #1
0
 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();
 }
Beispiel #2
0
 private void FinishGame()
 {
     owner.Storage.SaveData(DataStorageKeys.GAMERESULT_KEY, GameResult.GetRandomResult());
     owner.ChangeState(new FinishState());
 }