static public int StopCoroutine(IntPtr l)
{
try {
int argc = LuaDLL.lua_gettop(l);
if (matchType(l, argc, 2, typeof(UnityEngine.Coroutine)))
{
UnityEngine.MonoBehaviour self = (UnityEngine.MonoBehaviour)checkSelf(l);
UnityEngine.Coroutine a1;
checkType(l, 2, out a1);
self.StopCoroutine(a1);
return(0);
}
else if (matchType(l, argc, 2, typeof(System.Collections.IEnumerator)))
{
UnityEngine.MonoBehaviour self = (UnityEngine.MonoBehaviour)checkSelf(l);
System.Collections.IEnumerator a1;
checkType(l, 2, out a1);
self.StopCoroutine(a1);
return(0);
}
else if (matchType(l, argc, 2, typeof(string)))
{
UnityEngine.MonoBehaviour self = (UnityEngine.MonoBehaviour)checkSelf(l);
System.String a1;
checkType(l, 2, out a1);
self.StopCoroutine(a1);
return(0);
}
return(error(l, "No matched override function to call"));
}
catch (Exception e) {
return(error(l, e));
}
}