//changed these so they are static fuctions and have MonoPInvokeCallback decorator so they work from iOS (uses AOT) private static void DebugDrawUnmanaged(IntPtr iaPtrThis, IntPtr debugDrawer) { //UnityEngine.Debug.Log("callback dd yes!"); ActionInterfaceWrapper ai = GCHandle.FromIntPtr(iaPtrThis).Target as ActionInterfaceWrapper; ai._actionInterface.DebugDraw(DebugDraw.GetManaged(debugDrawer)); }
private void DebugDrawUnmanaged(IntPtr debugDrawer) { _actionInterface.DebugDraw(DebugDraw.GetManaged(debugDrawer)); }