Commit 1f08a141 authored by Mazy's avatar Mazy

!

parent 5e50d4d6
......@@ -7,7 +7,7 @@
<key>GYDemo.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>5</integer>
<integer>7</integer>
</dict>
</dict>
</dict>
......
......@@ -412,27 +412,27 @@ NSDictionary* appLaunchOpts;
// 发送 udid 和 idfa
- (void) transferUdidAndIdfaAction {
[self sendMsgToUnity];
// [self sendMsgToUnity];
}
// 发送消息给 Unity
- (void)sendMsgToUnity {
// [[self ufw] sendMessageToGOWithName: "Cube" functionName: "ChangeColor" message: "yellow"];
if ([self.payPageName isEqual:@"bj"]) {
[[self ufw] sendMessageToGOWithName: "bj" functionName: "iosLoginAction" message: ""];
} else {
NSString *dateStr = [BGKeychainTool getDeviceIDInKeychain];
[[self ufw] sendMessageToGOWithName: "BgImage" functionName: "unityGetDeviceUDID" message: [dateStr UTF8String]];
// idfa
Data *data = [[Data alloc] init];
NSString *idfa = [[data Read] objectForKey:@"idfa"];
[[self ufw] sendMessageToGOWithName: "BgImage" functionName: "unityGetAdvertisingIdentifier" message: [idfa UTF8String]];
[[self ufw] sendMessageToGOWithName: "BgImage" functionName: "iosLoginAction" message: ""];
}
}
//// 发送消息给 Unity
//- (void)sendMsgToUnity {
// // [[self ufw] sendMessageToGOWithName: "Cube" functionName: "ChangeColor" message: "yellow"];
//
// if ([self.payPageName isEqual:@"bj"]) {
// [[self ufw] sendMessageToGOWithName: "bj" functionName: "iosLoginAction" message: ""];
// } else {
// NSString *dateStr = [BGKeychainTool getDeviceIDInKeychain];
// [[self ufw] sendMessageToGOWithName: "BgImage" functionName: "unityGetDeviceUDID" message: [dateStr UTF8String]];
//
// // idfa
// Data *data = [[Data alloc] init];
// NSString *idfa = [[data Read] objectForKey:@"idfa"];
// [[self ufw] sendMessageToGOWithName: "BgImage" functionName: "unityGetAdvertisingIdentifier" message: [idfa UTF8String]];
//
// [[self ufw] sendMessageToGOWithName: "BgImage" functionName: "iosLoginAction" message: ""];
// }
//}
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
......
......@@ -7,12 +7,12 @@
<key>Unity-iPhone.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>6</integer>
<integer>5</integer>
</dict>
<key>UnityFramework.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>7</integer>
<integer>6</integer>
</dict>
</dict>
</dict>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment