Esempio n. 1
0
    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));
    }
Esempio n. 2
0
 public Game(DebugOutputDelegate debugDelegate, usePhoton photon)
     : base()
 {
     this.usePhoton = photon;
     this.DebugListeners = debugDelegate;
 }