Example #1
0
 void GameInitialize()
 {
     aliveNum
     .Timeout(System.TimeSpan.FromSeconds(limitTime))
     .Subscribe
     (
         value =>
     {
         int nowScore   = 900 - value;
         scoreText.text = nowScore.ToString();
         if (nowScore > highScore)
         {
             highScore = nowScore;
         }
     },
         onError =>
     {
         gameState = GameState.Result;
         uiManager.ResultUiInitialize();
     }).AddTo(gameObject);
 }