Last active
December 19, 2021 05:54
-
-
Save superbderrick/b725d1949d018c361803009f9e82359d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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