示例#1
0
    private static int ResetLingQinAnimation(IntPtr L)
    {
        int result;

        try
        {
            ToLua.CheckArgsCount(L, 2);
            RoleAction roleAction = (RoleAction)ToLua.CheckObject(L, 1, typeof(RoleAction));
            GameObject model      = (GameObject)ToLua.CheckUnityObject(L, 2, typeof(GameObject));
            roleAction.ResetLingQinAnimation(model);
            result = 0;
        }
        catch (Exception e)
        {
            result = LuaDLL.toluaL_exception(L, e, null);
        }
        return(result);
    }