From 4983407c8777a3e24c0caa2a603366c9a3bb84da Mon Sep 17 00:00:00 2001 From: minsikim-42 Date: Wed, 15 May 2024 23:48:46 +0900 Subject: [PATCH] Fix Turn Error --- .DS_Store | Bin 18436 -> 18436 bytes Assets/1Scenes/Intro.unity | 4 ++-- Assets/2Scripts/InGameManager.cs | 16 +++++++++++++++- Assets/2Scripts/NetworkManager.cs | 2 +- .../Resources/PhotonServerSettings.asset | 2 ++ 5 files changed, 20 insertions(+), 4 deletions(-) diff --git a/.DS_Store b/.DS_Store index 62302877d9e0f384e96b02a1099f8880036b01cf..fe0e364b6d3ec730ba47223e5c8f0e2f9b3fc6c8 100644 GIT binary patch delta 442 zcmZpfz}PZ@ae_Z%`^11pll2V58CfT1nFmfz(p8)M-N0qD5Yt!Ii4DA)**RD^7_}zv zGS8dLBcM4spV4D8uYdwSqr+w%g`-T2J0@RJDpZ%Kt~RqY&`~h9G^y25s5Ub*)lo1p zHmj}WSS@Nt_N9^oA2TRwTQ#=OUt#kA4eT=Yk}xUAyG#`29lE$ kfc{}%&;)vR^HsyCtebT-TG){SNnkU(!#9@AmL}}X06|(hEF6p) zn_mei@=sP^y2oh0nMdI$6XUkYmy`-s#j2}~O>`72%xZNMsx6HSbQDaC&1!2oIYgE9 zt%KsTb8_?YJ0@o-%QJRv?o!s^nOGLhC^@-MUukleJkMl1M()Y32J)Nr400JaPc@p! wIyp*EaI&m`#N@4Fl9PKF`6u%V t.nickName == nickName); + turnList.Remove(turn); + } public void Result(int t) { diff --git a/Assets/2Scripts/NetworkManager.cs b/Assets/2Scripts/NetworkManager.cs index 7800edd5db..823e21e03c 100644 --- a/Assets/2Scripts/NetworkManager.cs +++ b/Assets/2Scripts/NetworkManager.cs @@ -412,7 +412,7 @@ public override void OnPlayerLeftRoom(Player player) } else if (SceneManager.GetActiveScene().name == "Game") { - if (PhotonNetwork.IsMasterClient) + if (InGameManager.IT.GetIsTurn(player.NickName) && PhotonNetwork.IsMasterClient) InGameManager.IT.NextTurn(); // 다음 턴 } } diff --git a/Assets/Photon/PhotonUnityNetworking/Resources/PhotonServerSettings.asset b/Assets/Photon/PhotonUnityNetworking/Resources/PhotonServerSettings.asset index 2894efc6cd..fbb624d44c 100644 --- a/Assets/Photon/PhotonUnityNetworking/Resources/PhotonServerSettings.asset +++ b/Assets/Photon/PhotonUnityNetworking/Resources/PhotonServerSettings.asset @@ -59,6 +59,8 @@ MonoBehaviour: - RPC_Result - RPC_Die - RPC_SetTeamNum + - RPC_SetTurn + - RPC_LeaveUpdateTurn DisableAutoOpenWizard: 1 ShowSettings: 1 DevRegionSetOnce: 1