private IEnumerator ConfirmSelectSubject() // 항목 선택한게 확실한지 다시 물어보는 함수 { routineStream = new RoutineStream(); string[] _chioce = { "응", "아니" }; //introUIManager.UpYukgackCanvasLayerOrder(10); introUIManager.ToggleTouchPanel(false); highLight.SetActive(true); yield return(StartCoroutine(yukgack.MultipleTask(yukgack.RotateTo(yukgacRotateAngle, 0.1f), yukgack.MoveTo(yukgacRotateAppearPosition, 0.1f)))); //yield return StartCoroutine(yukgack.MoveTo(yukgacRotateBeforePosition, 0)); //yield return StartCoroutine(yukgack.MultipleTask(yukgack.RotateTo(yukgacRotateAngle, 0), // yukgack.MoveTo(yukgacRotateAppearPosition, 0.3f))); yield return(StartCoroutine(yukgack.Ask("원하시는 항목을 고르신건가요?", _chioce, routineStream, 0))); //introUIManager.RecoverYukgackCanvasLayerOrder(); introUIManager.ToggleTouchPanel(true); Debug.Log("touchpanel"); if (routineStream.result as string == _chioce[0]) { routineStream = new RoutineStream(); yield return(StartCoroutine(yukgack.Talk("고르셨으니 이제 항목으로 넘어가기 위해 시작버튼을 눌러주세요!", routineStream))); yield return(StartCoroutine(yukgack.SetDialogActive(false))); yield return(StartCoroutine(yukgack.MultipleTask(yukgack.RotateTo(Vector3.zero, 0.3f), yukgack.MoveTo(originYukgackPosition, 0.3f)))); introUIManager.ToggleYukgack(false); ActiveEvalationButton(); // 시작 버튼 활성화 highLight.StartTracing(highLightStartButton); } else { routineStream = new RoutineStream(); yield return(StartCoroutine(yukgack.Talk("이런, 죄송해요. 다시 고르실 때 까지 기다릴게요.", routineStream))); yield return(StartCoroutine(yukgack.SetDialogActive(false))); //yield return StartCoroutine(yukgack.MoveTo(yukgacRotateBeforePosition, 0.3f)); yield return(StartCoroutine(yukgack.MultipleTask(yukgack.RotateTo(Vector3.zero, 0.3f), yukgack.MoveTo(originYukgackPosition, 0.3f)))); highLight.SetActive(false); yield return(StartCoroutine(WaitSelectSubject())); introUIManager.ToggleYukgack(true); StartCoroutine(ConfirmSelectSubject()); } }
private IEnumerator MenuSequence() // 메뉴 설명을 위한 연출 { introUIManager.ToggleTouchPanel(true); introUIManager.ToggleSkipButton(true); highLight.SetActive(true); if (IsFirstStartIntroScene()) { yield return(StartCoroutine(FadeIn())); } yield return(new WaitUntil(() => menuManager.IsAppearButtonEnd)); introUIManager.ToggleYukgack(true); yield return(StartCoroutine(yukgack.MoveTo(yukgackAppearPosition, yukgackAppearTime))); routineStream = new RoutineStream(); yield return(StartCoroutine(yukgack.Talk("좋아요! 게임을 시작하기에 앞서, 버튼들에 대한 설명을 해드리죠.", routineStream))); highLight.StartTracing(highLightMenuButtons); StartCoroutine(yukgack.SetEmotion(Face.LookLeft)); routineStream = new RoutineStream(); yield return(StartCoroutine(yukgack.Talk("우선 이 버튼들은 게임을 위한 버튼이에요!", routineStream))); routineStream = new RoutineStream(); yield return(StartCoroutine(yukgack.Talk("새로하기를 누르면 평가를 시작합니다.", routineStream))); routineStream = new RoutineStream(); yield return(StartCoroutine(yukgack.Talk("평가를 하던 도중에 나왔을때 이어하기 버튼을 누르면 하던 평가를 이어서 할 수 있어요.", routineStream))); highLight.StopTracing(highLightMenuButtons); StartCoroutine(yukgack.SetEmotion(Face.Idle)); yield return(StartCoroutine(yukgack.SetDialogActive(false))); StartCoroutine(yukgack.DialogMoveTo(dialogRightPosition, 0)); yield return(StartCoroutine(yukgack.MoveTo(yukgacLeftPosition, 1f))); highLight.StartTracing(highLightRecordButton); StartCoroutine(yukgack.SetEmotion(Face.LookRight)); routineStream = new RoutineStream(); yield return(StartCoroutine(yukgack.Talk("이곳은 당신의 전적을 볼 수 있는 곳이에요!", routineStream))); routineStream = new RoutineStream(); yield return(StartCoroutine(yukgack.Talk("나중에 평가가 끝난 뒤에 보시면, 평가에 대한 분석을 보실 수 있어요.", routineStream))); highLight.StopTracing(highLightRecordButton); StartCoroutine(yukgack.SetEmotion(Face.Idle)); routineStream = new RoutineStream(); yield return(StartCoroutine(yukgack.Talk("여기서 알려드릴건 다 알려드린 것 같군요! 그럼 새로하기를 눌러 평가를 시작해 볼까요?", routineStream))); yield return(StartCoroutine(yukgack.SetDialogActive(false))); yield return(StartCoroutine(yukgack.MoveTo(yukgackDisappearPosition, yukgackAppearTime))); introUIManager.ToggleYukgack(false); introUIManager.ToggleTouchPanel(false); introUIManager.ToggleSkipButton(false); highLight.SetActive(false); introTrigger.isNeedMenu = false; NewGameManager.Instance.SaveIntroTrigger(introTrigger); }