void TurnChange(TurnChangeMsg msg) { int tempPlayerNum = inGameplayModel.PlayerNum; int tempMissionChance = playersModel.GetMissionChance(tempPlayerNum); SoundManager.Instance.PlaySound((int)SoundType.Mission_Popup); SoundManager.Instance.PlaySound((int)SoundType.Player_Order); //if (tempPlayerNum % 2 == 0) //{ // SoundManager.Instance.PlaySound((int)SoundType.Player_Order); //} //else //{ // SoundManager.Instance.PlaySound((int)SoundType.Player_Order); //} //플레이어 다이얼로그 셋팅 UI.IDialog.RequestDialogEnter <UI.PlayerDialog>(); Message.Send <SetPlayerInfoMsg>(new SetPlayerInfoMsg(tempPlayerNum, tempMissionChance, inGameplayModel.GameMode)); //키오스크 순서 표시 Message.Send <SetBetBoardInfoMsg>(new SetBetBoardInfoMsg(inGameplayModel.Round, tempPlayerNum)); Message.Send <SetScoreBoardOrderInfoMsg>(new SetScoreBoardOrderInfoMsg(tempPlayerNum)); if (settingModel.IsTestMode) { UI.IDialog.RequestDialogEnter <UI.InGameDialog>(); Message.Send <SetBetModeInfoMsg>(new SetBetModeInfoMsg(inGameplayModel.BetModeMission, playersModel.GetBetModePlayPossiblePlayerCount(), inGameplayModel.Round)); } else { StartCoroutine(MissionInfo(tempPlayerNum)); } }
void TurnChange(TurnChangeMsg msg) { int tempPlayerNum = inGameplayModel.PlayerNum; int tempMissionChance = playersModel.GetMissionChance(tempPlayerNum); //인게임 다이얼로그 미션 셋팅 SoundManager.Instance.PlaySound((int)SoundType.Mission_Popup); //SoundManager.Instance.SoundVolume((int)SoundType.Crowd_Effect, 0.3f); SoundType tempType; if (isSpark) { if (tempPlayerNum % 2 == 0) { tempType = SoundType.Mission_Spark_Red; //SoundManager.Instance.PlaySound((int)SoundType.Mission_Spark_Red); } else { tempType = SoundType.Mission_Spark_White; //SoundManager.Instance.PlaySound((int)SoundType.Mission_Spark_White); } isSpark = false; } else { if (tempPlayerNum % 2 == 0) { tempType = SoundType.Mission_Player_Red; //SoundManager.Instance.PlaySound((int)SoundType.Mission_Player_Red); } else { tempType = SoundType.Mission_Player_White; } } SoundManager.Instance.PlaySound((int)tempType); //플레이어 다이얼로그 셋팅 UI.IDialog.RequestDialogEnter <UI.PlayerDialog>(); Message.Send <SetScoreBoardOrderInfoMsg>(new SetScoreBoardOrderInfoMsg(tempPlayerNum)); Message.Send <SetPlayerInfoMsg>(new SetPlayerInfoMsg(tempPlayerNum, tempMissionChance, inGameplayModel.GameMode)); //미션 및 플레이어에 따라 오브젝트 배치 Message.Send <SetMissionObjectMsg>(new SetMissionObjectMsg(playersModel.GetMissionModeNowMission(tempPlayerNum))); StartCoroutine(MissionInfo(tempPlayerNum, tempType)); }
protected override void TurnEnd(TurnChangeMsg msg) { GameObject temp_Start; GameObject temp_Target; BetModeBall_Controller temp_Start_Controller; inGameCamera.gameObject.transform.localPosition = cameraPosition; inGameCamera.gameObject.transform.localEulerAngles = cameraRotation; if (igm.PlayerNum % 2 == 0) { temp_Start = Red_Ball; temp_Target = White_Ball; temp_Start_Controller = red_Ball_Controller; } else { temp_Start = White_Ball; temp_Target = Red_Ball; temp_Start_Controller = white_Ball_Controller; } temp_Start.transform.localScale = ballScale; temp_Start.SetActive(false); if (igm.BetModeMission == BetModeGame.Gate_1) { temp_Target.SetActive(false); Gate1.transform.localPosition = targetPosition; Gate1.transform.localEulerAngles = targetRotation; Gate1.transform.localScale = targetScale; targetArrow.transform.position = Gate1.transform.position + new Vector3(0, 1.5f, 0); missionEffet.transform.position = Gate1.transform.position + new Vector3(0, 2f, 0); } else if (igm.BetModeMission == BetModeGame.Touch) { temp_Target.SetActive(true); temp_Target.transform.localPosition = targetPosition; temp_Target.transform.localEulerAngles = targetRotation; temp_Target.transform.localScale = targetScale; temp_Target.GetComponent <Rigidbody>().constraints = RigidbodyConstraints.FreezeAll; temp_Start.GetComponent <Rigidbody>().constraints = RigidbodyConstraints.FreezeAll; targetArrow.transform.position = temp_Target.transform.position + new Vector3(0, 0.5f, 0); missionEffet.transform.position = temp_Target.transform.position + new Vector3(0, 1f, 0); } else if (igm.BetModeMission == BetModeGame.Pole) { temp_Target.SetActive(false); Pole.transform.localPosition = targetPosition; Pole.transform.localEulerAngles = targetRotation; Pole.transform.localScale = targetScale; targetArrow.transform.position = Pole.transform.position + new Vector3(0, 1f, 0); missionEffet.transform.position = Pole.transform.position + new Vector3(0, 2f, 0); } targetArrow.transform.LookAt(frontCamera.transform); temp_Start_Controller.isPlayerBall = true; }