Esempio n. 1
0
 private void OnMainPlayerDie()
 {
     MsgBoxAPI.ShowMsgBox("dead!!!", "continue the game?", "exit|continue", (arg) =>
     {
         if ((int)arg == 0)
         {
             m_game.GameExit();
         }
         else
         {
             m_game.RebornPlayer();
         }
     });
 }
Esempio n. 2
0
 private void OnMainPlayerDie()
 {
     UIAPI.ShowMsgBox("死亡!!!", "是否重生继续游戏?", "确定退出|继续游戏", (arg) =>
     {
         if ((int)arg == 0)
         {
             m_game.GameExit();
         }
         else
         {
             m_game.RebornPlayer();
         }
     });
 }