示例#1
0
 static int getVectorAngle(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UnityEngine.Vector2 arg0 = ToLua.ToVector2(L, 1);
         UnityEngine.Vector2 arg1 = ToLua.ToVector2(L, 2);
         float o = LuaExtend.getVectorAngle(arg0, arg1);
         LuaDLL.lua_pushnumber(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
        static int _m_getVectorAngle_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                {
                    UnityEngine.Vector2 to; translator.Get(L, 1, out to);
                    UnityEngine.Vector2 from; translator.Get(L, 2, out from);

                    float __cl_gen_ret = LuaExtend.getVectorAngle(to, from);
                    LuaAPI.lua_pushnumber(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }