private IEnumerator OnPushMarriageConfirmStateCoroutine() { mKeyController.ClearKeyAll(); mKeyController.firstUpdate = true; mKeyController.IsRun = false; Stopwatch stopWatch = new Stopwatch(); stopWatch.Reset(); stopWatch.Start(); if (mCommonDialog == null) { ResourceRequest requestPrefabCommonDialogPort = Resources.LoadAsync("Prefabs/Others/CommonDialogPort"); App.OnlyController = new KeyControl(); SingletonMonoBehaviour <UIShortCutMenu> .Instance.LockTouchControl(isEnable : true); yield return(requestPrefabCommonDialogPort); mCommonDialog = Util.Instantiate(requestPrefabCommonDialogPort.asset, mTransform_LayerOverlay.gameObject).GetComponent <CommonDialog>(); mCommonDialog.SetCameraBlur(mBlur_Camera); mUIMarriageConfirm = mCommonDialog.dialogMessages[0].GetComponent <UIMarriageConfirm>(); App.OnlyController = null; SingletonMonoBehaviour <UIShortCutMenu> .Instance.LockTouchControl(isEnable : false); } mCommonDialog.isUseDefaultKeyController = false; mUIMarriageConfirm.Initialize(mPortManager.YubiwaNum, mPortManager.YubiwaNum - 1); mUIMarriageConfirm.SetOnNegativeListener(OnCancelMarriageConfirm); mUIMarriageConfirm.SetOnPositiveListener(OnStartMarriageConfirm); mUIMarriageConfirm.SetKeyController(mKeyController); stopWatch.Stop(); for (int frame = 0; frame < stopWatch.Elapsed.Milliseconds / 60; frame++) { yield return(new WaitForEndOfFrame()); } mKeyController.IsRun = true; mCommonDialog.OpenDialog(0); }