예제 #1
0
            internal static _OnObjectAdded OnObjectAdded()
            {
                if (_OnObjectAddedFunc == null)
                {
                    _OnObjectAddedFunc =
                        (_OnObjectAdded)Marshal.GetDelegateForFunctionPointer(
                            Torque3D.DllLoadUtils.GetProcAddress(
                                Torque3D.Torque3DLibHandle,
                                "cbSimSet_onObjectAdded"), typeof(_OnObjectAdded));
                }

                return(_OnObjectAddedFunc);
            }
예제 #2
0
            internal static _OnObjectAdded OnObjectAdded()
            {
                if (_OnObjectAddedFunc == null)
                {
                    _OnObjectAddedFunc =
                        (_OnObjectAdded)Marshal.GetDelegateForFunctionPointer(
                            NativeLibrary.GetExport(
                                Torque3D.Torque3DLibHandle,
                                "cbSimSet_onObjectAdded"), typeof(_OnObjectAdded));
                }

                return(_OnObjectAddedFunc);
            }