public static void GetAsync(WorldAnchorStore.GetAsyncDelegate onCompleted) { if (WorldAnchorStore.s_Instance != null) { onCompleted(WorldAnchorStore.s_Instance); } else { WorldAnchorStore.GetAsync_Internal(onCompleted); } }
private static extern void GetAsync_Internal(WorldAnchorStore.GetAsyncDelegate onCompleted);
private static void InvokeGetAsyncDelegate(WorldAnchorStore.GetAsyncDelegate handler, IntPtr nativePtr) { WorldAnchorStore.s_Instance = new WorldAnchorStore(nativePtr); handler(WorldAnchorStore.s_Instance); }