This commit is contained in:
chiyu.lin 2025-11-19 12:30:07 +08:00
parent 343acf39be
commit 81ae31f18c
4 changed files with 18 additions and 3 deletions

View File

@ -103,7 +103,7 @@ public class ClientWorkMessageResultView2SceneController : MonoBehaviour
{
ClientMessageHandler.Instance.SendMessageToServer("workProcess", "continue");
}
StartCoroutine(LoadGameScene());
}
private void step3NextButton_onClicked()
@ -167,7 +167,12 @@ public class ClientWorkMessageResultView2SceneController : MonoBehaviour
{
yield return new WaitForSeconds(0f);
SceneManager.LoadScene("ClientWorkMessageResultExitScene");
}
public IEnumerator LoadGameScene()
{
yield return new WaitForSeconds(0f);
SceneManager.LoadScene("ClientGameScene");
}
// Update is called once per frame

View File

@ -143,6 +143,14 @@ public class NetworkMessageHandler : MonoBehaviour
{
ServerGamePanel.Instance.gameOpen();
}
else
{
//因為時間同步的問題這2個遊戲強制Server進入遊戲畫面
if (msg.payload == "typing" || msg.payload == "sticks")
{
ServerWorkSceneController.Instance.processStep(13);
}
}
}
break;
case "getWords":

View File

@ -38,6 +38,8 @@ public class ServerGamePanel : MonoBehaviour
ServerWorkSceneController.Instance.processStep(16);
break;
}
nameOfTheGameWillBeOpened = "";
}

View File

@ -200,7 +200,7 @@ public class ServerWorkSceneController : MonoBehaviour
gamePanel.SetActive(step == 13 ? true : false);
if (step == 13)
{
ServerGamePanel.nameOfTheGameWillBeOpened = "";
//ServerGamePanel.nameOfTheGameWillBeOpened = "";
}
}
if (gameTalkingPanel)