コード例 #1
0
ファイル: GameSystem.cs プロジェクト: kwhk94/EldrichHorror
 public void SereializeReceive(PhotonStream stream, PhotonMessageInfo info)
 {
     this.gameOrder      = (Game_order_Name)stream.ReceiveNext();
     this.actionName     = (Action_Name)stream.ReceiveNext();
     this.current_player = (int)stream.ReceiveNext();
     this.start_player   = (int)stream.ReceiveNext();
 }
コード例 #2
0
ファイル: Player.cs プロジェクト: kwhk94/EldrichHorror
 void ChangeChracternumber(Game_order_Name name)
 {
     currentActionPoint = 2;
     GameSystem.Instance.gameRule.current_player = (GameSystem.Instance.gameRule.current_player + 1) % PhotonNetwork.playerList.Length;
     cardSystem.cardSelectonoff = false;
     if (GameSystem.Instance.gameRule.current_player == GameSystem.Instance.gameRule.start_player)
     {
         GameSystem.Instance.gameRule.gameOrder = name;
     }
 }