コード例 #1
0
        private IEnumerator LoadTutorial(TutorialModel model, TutorialID ID, Action OnLoaded)
        {
            KeyControl key = null;

            if (SingletonMonoBehaviour <UIShortCutMenu> .exist())
            {
                SingletonMonoBehaviour <UIShortCutMenu> .Instance.LockTouchControl(isEnable : true);

                key = App.OnlyController;
                App.OnlyController = new KeyControl();
            }
            req = Resources.LoadAsync("Prefabs/TutorialGuide/TutorialDialog_" + ID.ToString());
            yield return(req);

            tutorialDialog = null;
            tutorialDialog = Util.Instantiate(req.asset).GetComponent <TutorialDialog>();
            tutorialDialog.SetTutorialId(ID);
            model.SetKeyTutorialFlg((int)ID);
            tutorialDialog.SetOnLoaded(OnLoaded);
            req = null;
            if (SingletonMonoBehaviour <UIShortCutMenu> .exist())
            {
                SingletonMonoBehaviour <UIShortCutMenu> .Instance.LockTouchControl(isEnable : false);

                App.OnlyController = key;
            }
        }