[M] iOS add UnityKnowNew pay method
This commit is contained in:
@@ -30,16 +30,21 @@ namespace tysdk
|
||||
if (_instance == null)
|
||||
{
|
||||
_instance = new GameObject("TYSdkFacade").AddComponent<TYSdkFacade>();
|
||||
Init();
|
||||
DontDestroyOnLoad(_instance.gameObject);
|
||||
}
|
||||
return _instance;
|
||||
}
|
||||
}
|
||||
|
||||
public static void Init()
|
||||
public void Init()
|
||||
{
|
||||
#if UNITY_ANDROID
|
||||
UnityBridgeFunc.InitSDK();
|
||||
#endif
|
||||
}
|
||||
|
||||
public void InitAfterLogin()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ namespace tysdk
|
||||
{
|
||||
if (!IsLoggedIn) return new SKUDetail() { code = "-1", msg = "未登录" };
|
||||
|
||||
#if UNITY_EDITOR
|
||||
#if UNITY_EDITOR || UNITY_IOS
|
||||
await Task.Yield();
|
||||
var result = new SKUDetail();
|
||||
return result;
|
||||
@@ -130,4 +130,4 @@ namespace tysdk
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user