Noirand

cs script test 02

May 10th, 2016
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.85 KB | None | 0 0
  1.     IEnumerator ShowDialog()
  2.     {
  3.         foreach (DynValue x in m_LuaCoroutine.Coroutine.AsTypedEnumerable())
  4.         {
  5.             //DynValue x = coroutine.Coroutine.Resume();
  6.             if (x.IsNotVoid())
  7.             {
  8.                 //m_Text.text = x.CastToString();
  9.                 m_CurMsg = "";
  10.  
  11.                 m_iNum = 0;
  12.                 //var textPut = StartCoroutine( PutText(x.CastToString()) );
  13.                 var textPut = StartCoroutine( PutText(m_Lua.Globals["g_TalkWords"].ToString()) );
  14.                 m_Name.text = m_Lua.Globals["g_TalkChara"].ToString();
  15.                 //m_Text.text = m_CurMsg;
  16.  
  17.                 Debug.Log(x);
  18.  
  19.                 yield return textPut;
  20.  
  21.                 switch (WaitKey)
  22.                 {
  23.                     case EZ_WAIT_KEY._NONE:
  24.                         yield return null;
  25.                         break;
  26.                     case EZ_WAIT_KEY.TIME:
  27.                         yield return new WaitForSeconds(3);
  28.                         break;
  29.                     case EZ_WAIT_KEY.KEY:
  30.                         yield return new WaitUntil(() => Input.anyKeyDown);
  31.                         break;
  32.                 }
  33.             }
  34.         }
  35.     }
Advertisement
Add Comment
Please, Sign In to add comment