コード例 #1
0
 /// <summary>
 /// 离线模式
 /// </summary>
 public void OfflineModeAct(int nPly)
 {
     HidePath();
     chessManManager.hidePointer();
     _isRedTurn = true;
     PhotonNetwork.offlineMode = true;
     nFlag = 0;
     PlayMusic(welcomMusic);
     AI.OnNewGame(1, nPly);
     chessManManager.ChessmanInit();
     LocalGameStatusText.text  = "开局!";
     RemoteGameStatusText.text = "开局!";
     localPlayerType           = ChessPlayerType.Red;
     LocalGameStatusText.text  = "您是红方棋手……";
     if (PlayerPrefs.HasKey("PlayerName"))
     {
         this.LocalPlayerNameText.text = PlayerPrefs.GetString("PlayerName") + ":红方";
     }
     RemotePlayerNameText.text = "AI:黑方";
     UpdatePlayerScoreTexts();
     this.StartTurn();
 }