public UIGraph_BuildLabels() { try { pixelsToUnits = FastDelegateFactory.Create <PixelsToUnitsDelegate>(typeof(UIComponent), "PixelsToUnits", instanceMethod: true); addSolidQuad = FastDelegateFactory.Create <AddSolidQuadDelegate>(typeof(UIGraph), "AddSolidQuad", instanceMethod: true); } catch (Exception ex) { Log.Error("The 'Real Time' mod failed to create delegates for the UIGraph. Error message: " + ex); } }
public UIGraph_BuildLabels() { try { pixelsToUnits = FastDelegate.Create <UIComponent, PixelsToUnitsDelegate>("PixelsToUnits"); addSolidQuad = FastDelegate.Create <UIGraph, AddSolidQuadDelegate>("AddSolidQuad"); } catch (Exception ex) { Log.Error("The 'Real Time' mod failed to create delegates for the UIGraph. Error message: " + ex); } }