Пример #1
0
 private static IEnumerator beginInput(Action<string,bool> act)
 {
     if (isRun) yield break;
     isRun = true;
     Menu.open(true, InvisivleCurrentMenu);
     //MenuContoller.doEnableMenu(Menu,true,InvisivleCurrenMenu);
     yield return new WaitUntil(() => Menu.isDone);
     act(Menu.ReturnText, Menu.isCancel);
     isInit = false;
     Menu = null;
     isRun = false;
 }
Пример #2
0
 public static void initInputMenu(MyCharacterController owner, int maxinputlength,bool invisiblecurrentmenu = true)
 {
     Menu = new StringBoardMenu(owner, maxinputlength);
     isInit = true;
     InvisivleCurrentMenu = invisiblecurrentmenu;
 }