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

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

                return(_OnLoadFunc);
            }