Created
February 23, 2022 10:03
-
-
Save eunjin3786/f94ebebd038867321f102e9a280c859a 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 | |
import UnityFramework | |
struct UnityMessage { | |
let gameObjectName: String | |
let functionName: String | |
let message: String | |
} | |
class UnityManager: NSObject { | |
... | |
func sendMessageToUnity(_ message: UnityMessage) { | |
self.ufw?.sendMessageToGO(withName: message.gameObjectName, | |
functionName: message.functionName, | |
message: message.message) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment