示例#1
0
            internal static _SpawnObject SpawnObject()
            {
                if (_SpawnObjectFunc == null)
                {
                    _SpawnObjectFunc =
                        (_SpawnObject)Marshal.GetDelegateForFunctionPointer(
                            NativeLibrary.GetExport(
                                Torque3D.Torque3DLibHandle,
                                "fnSpawnSphere_spawnObject"), typeof(_SpawnObject));
                }

                return(_SpawnObjectFunc);
            }
示例#2
0
            internal static _SpawnObject SpawnObject()
            {
                if (_SpawnObjectFunc == null)
                {
                    _SpawnObjectFunc =
                        (_SpawnObject)Marshal.GetDelegateForFunctionPointer(
                            Torque3D.DllLoadUtils.GetProcAddress(
                                Torque3D.Torque3DLibHandle,
                                "fnSpawnSphere_spawnObject"), typeof(_SpawnObject));
                }

                return(_SpawnObjectFunc);
            }