Example #1
0
            internal static _OnLoad OnLoad()
            {
                if (_OnLoadFunc == null)
                {
                    _OnLoadFunc =
                        (_OnLoad)Marshal.GetDelegateForFunctionPointer(
                            Torque3D.DllLoadUtils.GetProcAddress(
                                Torque3D.Torque3DLibHandle,
                                "cbPrefab_onLoad"), typeof(_OnLoad));
                }

                return(_OnLoadFunc);
            }
Example #2
0
            internal static _OnLoad OnLoad()
            {
                if (_OnLoadFunc == null)
                {
                    _OnLoadFunc =
                        (_OnLoad)Marshal.GetDelegateForFunctionPointer(
                            NativeLibrary.GetExport(
                                Torque3D.Torque3DLibHandle,
                                "cbPrefab_onLoad"), typeof(_OnLoad));
                }

                return(_OnLoadFunc);
            }