fix Q17
This commit is contained in:
parent
343acf39be
commit
81ae31f18c
@ -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
|
||||
|
||||
@ -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":
|
||||
|
||||
@ -38,6 +38,8 @@ public class ServerGamePanel : MonoBehaviour
|
||||
ServerWorkSceneController.Instance.processStep(16);
|
||||
break;
|
||||
}
|
||||
|
||||
nameOfTheGameWillBeOpened = "";
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -200,7 +200,7 @@ public class ServerWorkSceneController : MonoBehaviour
|
||||
gamePanel.SetActive(step == 13 ? true : false);
|
||||
if (step == 13)
|
||||
{
|
||||
ServerGamePanel.nameOfTheGameWillBeOpened = "";
|
||||
//ServerGamePanel.nameOfTheGameWillBeOpened = "";
|
||||
}
|
||||
}
|
||||
if (gameTalkingPanel)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user