fix Q17
This commit is contained in:
parent
343acf39be
commit
81ae31f18c
@ -103,7 +103,7 @@ public class ClientWorkMessageResultView2SceneController : MonoBehaviour
|
|||||||
{
|
{
|
||||||
ClientMessageHandler.Instance.SendMessageToServer("workProcess", "continue");
|
ClientMessageHandler.Instance.SendMessageToServer("workProcess", "continue");
|
||||||
}
|
}
|
||||||
|
StartCoroutine(LoadGameScene());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void step3NextButton_onClicked()
|
private void step3NextButton_onClicked()
|
||||||
@ -167,7 +167,12 @@ public class ClientWorkMessageResultView2SceneController : MonoBehaviour
|
|||||||
{
|
{
|
||||||
yield return new WaitForSeconds(0f);
|
yield return new WaitForSeconds(0f);
|
||||||
SceneManager.LoadScene("ClientWorkMessageResultExitScene");
|
SceneManager.LoadScene("ClientWorkMessageResultExitScene");
|
||||||
|
}
|
||||||
|
|
||||||
|
public IEnumerator LoadGameScene()
|
||||||
|
{
|
||||||
|
yield return new WaitForSeconds(0f);
|
||||||
|
SceneManager.LoadScene("ClientGameScene");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update is called once per frame
|
// Update is called once per frame
|
||||||
|
|||||||
@ -143,6 +143,14 @@ public class NetworkMessageHandler : MonoBehaviour
|
|||||||
{
|
{
|
||||||
ServerGamePanel.Instance.gameOpen();
|
ServerGamePanel.Instance.gameOpen();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
//因為時間同步的問題,這2個遊戲強制Server進入遊戲畫面
|
||||||
|
if (msg.payload == "typing" || msg.payload == "sticks")
|
||||||
|
{
|
||||||
|
ServerWorkSceneController.Instance.processStep(13);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "getWords":
|
case "getWords":
|
||||||
|
|||||||
@ -38,6 +38,8 @@ public class ServerGamePanel : MonoBehaviour
|
|||||||
ServerWorkSceneController.Instance.processStep(16);
|
ServerWorkSceneController.Instance.processStep(16);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nameOfTheGameWillBeOpened = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -200,7 +200,7 @@ public class ServerWorkSceneController : MonoBehaviour
|
|||||||
gamePanel.SetActive(step == 13 ? true : false);
|
gamePanel.SetActive(step == 13 ? true : false);
|
||||||
if (step == 13)
|
if (step == 13)
|
||||||
{
|
{
|
||||||
ServerGamePanel.nameOfTheGameWillBeOpened = "";
|
//ServerGamePanel.nameOfTheGameWillBeOpened = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (gameTalkingPanel)
|
if (gameTalkingPanel)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user