unsafe void Start() { _outputDelegate = DebugOutput; _breakDelegate = DebugBreak; _outputHandle = GCHandle.Alloc(_outputDelegate); _breakHandle = GCHandle.Alloc(_breakDelegate); CSGLib.RegisterDebugOutput(Marshal.GetFunctionPointerForDelegate(_outputDelegate)); CSGLib.RegisterDebugBreak(Marshal.GetFunctionPointerForDelegate(_breakDelegate)); }
public Game(DebugOutputDelegate debugDelegate, usePhoton photon) : base() { this.usePhoton = photon; this.DebugListeners = debugDelegate; }