private void OnDestroy()
 {
     myUIWidget       = null;
     rewardMessages   = null;
     NowRewardMessage = null;
     key          = null;
     DifficltyTex = null;
 }
        private IEnumerator DialogControl()
        {
            yield return(Util.WaitEndOfFrames(3));

            float fadeTime = 0.5f;

            if (rewardMessages.Any((InheritRewardMessage x) => x.isNeedShow))
            {
                TweenAlpha.Begin(myUIWidget.gameObject, fadeTime, 1f);
                yield return(new WaitForSeconds(fadeTime));

                for (int i = 0; i < rewardMessages.Length; i++)
                {
                    if (rewardMessages[i].isNeedShow)
                    {
                        if (NowRewardMessage != null)
                        {
                            TweenAlpha.Begin(NowRewardMessage.gameObject, fadeTime, 0f);
                            yield return(new WaitForSeconds(fadeTime));
                        }
                        SoundUtils.PlaySE(SEFIleInfos.SE_027);
                        NowRewardMessage = rewardMessages[i];
                        TweenAlpha.Begin(NowRewardMessage.gameObject, fadeTime, 1f);
                        yield return(new WaitForSeconds(fadeTime));

                        yield return(StartCoroutine(WaitForKey(KeyControl.KeyName.MARU, KeyControl.KeyName.BATU)));
                    }
                }
                TweenAlpha.Begin(NowRewardMessage.gameObject, fadeTime, 0f);
                TweenAlpha.Begin(myUIWidget.gameObject, fadeTime, 0f);
                yield return(new WaitForSeconds(fadeTime));
            }
            yield return(new WaitForSeconds(0.5f));

            InheritLoadTaskManager.ReqMode(InheritLoadTaskManager.InheritTaskManagerMode.InheritTaskManagerMode_ST);
            yield return(null);
        }