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(); }
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; } }