Beispiel #1
0
    //prepare:だいたいここの状態を通る
    //クイズをUIに
    IEnumerator PrepareAction()
    {
        Debug.Log("Turn : " + (quizTurn + 1));
        multiQuizManager.InitTime();
        myResultState = MyResultState.Wait;

        //マスターがゲームスタートの合図を送る
        //初回のみボタンクリックでスタート、2回目以降はタイミングのみ合わせる
        yield return(StartCoroutine(multiQuizManager.StartFromMaster(quizTurn)));

        yield return(new WaitForSeconds(1)); quizUIManager.SetQuizOnPanel(quizes, quizTurn);
        quizTurn = quizTurn + 1;
        SetCurrentState(GameState.Wait);
    }
Beispiel #2
0
    private void ReturnResult(MyResultState state, CardSelectState card)
    {
        quizSceneManager.rivalCard = card;
        switch (state)
        {
        case MyResultState.OnlyAnswer:
            quizSceneManager.SetResultState(MyResultState.OnlyAnswer);
            break;

        case MyResultState.IsFast:
            quizSceneManager.SetResultState(MyResultState.IsFast);

            break;

        case MyResultState.IsSlow:
            quizSceneManager.SetResultState(MyResultState.IsSlow);

            break;
        }
    }
Beispiel #3
0
 public void SetResultState(MyResultState state)
 {
     myResultState = state;
 }
Beispiel #4
0
 private void SendMeResult(MyResultState state)
 {
     quizSceneManager.SetResultState(state);
 }