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