StartCoroutine_Auto() public method

public StartCoroutine_Auto ( IEnumerator routine ) : Coroutine
routine IEnumerator
return Coroutine
Example #1
0
 static public int StartCoroutine_Auto(IntPtr l)
 {
     try {
         UnityEngine.MonoBehaviour      self = (UnityEngine.MonoBehaviour)checkSelf(l);
         System.Collections.IEnumerator a1;
         checkType(l, 2, out a1);
         var ret = self.StartCoroutine_Auto(a1);
         pushValue(l, ret);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
 static int StartCoroutine_Auto(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UnityEngine.MonoBehaviour      obj  = (UnityEngine.MonoBehaviour)ToLua.CheckObject <UnityEngine.MonoBehaviour>(L, 1);
         System.Collections.IEnumerator arg0 = ToLua.CheckIter(L, 2);
         UnityEngine.Coroutine          o    = obj.StartCoroutine_Auto(arg0);
         ToLua.PushSealed(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int StartCoroutine_Auto(IntPtr L)
    {
        ToLua.CheckArgsCount(L, 2);
        UnityEngine.MonoBehaviour      obj  = (UnityEngine.MonoBehaviour)ToLua.CheckObject(L, 1, typeof(UnityEngine.MonoBehaviour));
        System.Collections.IEnumerator arg0 = (System.Collections.IEnumerator)ToLua.CheckObject(L, 2, typeof(System.Collections.IEnumerator));
        UnityEngine.Coroutine          o    = null;

        try
        {
            o = obj.StartCoroutine_Auto(arg0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }

        ToLua.PushObject(L, o);
        return(1);
    }