Skip to content

Instantly share code, notes, and snippets.

@superbderrick
Last active December 19, 2021 05:54
Show Gist options
  • Save superbderrick/b725d1949d018c361803009f9e82359d to your computer and use it in GitHub Desktop.
Save superbderrick/b725d1949d018c361803009f9e82359d to your computer and use it in GitHub Desktop.
#import <Foundation/Foundation.h>
#import "NativeCallProxy.h"
@implementation FrameworkLibAPI
id<NativeCallsProtocol> api = NULL;
+(void) registerAPIforNativeCalls:(id<NativeCallsProtocol>) aApi
{
api = aApi;
}
@end
extern "C" {
void loadedUnity(const char* status) { return [api loadedUnity:[NSString stringWithUTF8String:status]]; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment