Example #1
0
        static public bool checkType(IntPtr l, int p, out Vector3 v)
        {
            float x, y, z;

            LuaDLL.luaS_checkVector3(l, p, out x, out y, out z);
            v = new Vector3(x, y, z);
            return(true);
        }
        static public bool checkType(IntPtr l, int p, out Vector3 v)
        {
            float x, y, z;

            if (LuaDLL.luaS_checkVector3(l, p, out x, out y, out z) != 0)
            {
                throw new Exception(string.Format("Invalid vector3 argument at {0}", p));
            }
            v = new Vector3(x, y, z);
            return(true);
        }