//정답 확인 // // Rpc 로 패널 넘기기 public void CheckAnswer() { if (cardBoardSetting.isCardBoardOn) { cardBoardSetting.isCardBoardOn = false; } int modeID = GameManager.Instance.modeID; switch (modeID) { //정답 확인 ::: 혼자하기 유형 1 case 2: if (string.IsNullOrEmpty(inputField.text) == false) { int playerAnswer = int.Parse(inputField.text); answerManager.CompareAnswer_Int(playerAnswer); } break; //정답 확인 ::: 혼자하기 유형 2 / 유형 3 case 3: Debug.Log($"ButtonManager ::: \n {modeID} 정답 체크하겠습니다."); playerAnswerArray = checkBoardMgr.MakePlayerAnswerArray(); answerManager.CompareAnswer_Array(playerAnswerArray); break; case 4: if (list.Count != 0) { Debug.Log($"ButtonManager ::: \n {modeID} 정답 체크하겠습니다."); playerAnswerArray = checkBoardMgr.MakePlayerAnswerArray(); answerManager.CompareAnswer_Array(playerAnswerArray); } break; case 5: Debug.Log($"ButtonManager ::: \n {modeID}"); break; case 6: case 7: case 8: if (PhotonNetwork.IsMasterClient) { Debug.Log($"방장 정답체크 버튼 누름"); photonView.RPC("RpcCheckAnswerTogether", RpcTarget.AllBuffered, modeID); } break; } }
// 정답 확인 public void CheckAnswer() { if (list.Count != 0) { if (cardBoardSetting.isCardBoardOn) { cardBoardSetting.isCardBoardOn = false; } playerAnswerArray = checkBoardMgr.MakePlayerAnswerArray(); answerManager.CompareAnswer_Array(playerAnswerArray); } }