diff --git a/Assets/BingoSun/BrigdeIOS.cs b/Assets/BingoSun/BrigdeIOS.cs index 627179e..727123f 100644 --- a/Assets/BingoSun/BrigdeIOS.cs +++ b/Assets/BingoSun/BrigdeIOS.cs @@ -54,9 +54,11 @@ public class BrigdeIOS [DllImport("__Internal")] public static extern void setRewardBtnTag(bool flag); [DllImport("__Internal")] - public static extern void SetOffset(int offset_y ,int offset_y2); + public static extern void SetOffset(int offset_y, int offset_y2); [DllImport("__Internal")] public static extern void copyText(string text); + [DllImport("__Internal")] + public static extern void showGameA(bool flag); } diff --git a/Assets/BingoSun/Scripts/AppsFlyerObjectScript1.cs b/Assets/BingoSun/Scripts/AppsFlyerObjectScript1.cs index 2c6600a..71ff3f7 100644 --- a/Assets/BingoSun/Scripts/AppsFlyerObjectScript1.cs +++ b/Assets/BingoSun/Scripts/AppsFlyerObjectScript1.cs @@ -28,7 +28,7 @@ public class AppsFlyerObjectScript1 : MonoBehaviour, IAppsFlyerConversionData #if UNITY_EDITOR - NetworkDispatcher.Instance.Dispatch(NetworkMsg.Login); + // NetworkDispatcher.Instance.Dispatch(NetworkMsg.Login); #endif diff --git a/Assets/Plugins/iOS/pluginIOs.mm b/Assets/Plugins/iOS/pluginIOs.mm index 6e9a865..7b2b48a 100644 --- a/Assets/Plugins/iOS/pluginIOs.mm +++ b/Assets/Plugins/iOS/pluginIOs.mm @@ -1,3 +1,4 @@ +#import extern "C" { #include "H5View.h" NSString *stringFromChar(const char *input) { @@ -36,7 +37,9 @@ extern "C" { // void SetCTEnable(bool flag){ // [[CustomView shared] enableCT:flag]; // } - +void showGameA(bool flag){//显示游戏a + [NativeUIManager showMainMenu]; +} void ShowH5View(bool flag){//设置显隐 [[H5View shared] showView:flag]; }