#if UNITY_IOS
UIEventListener.Get(mSprites["Recharge"].gameObject).onClick = OnIOSRechargeClick;
#elif UNITY_ANDROID
bool isOpen = Utile.Verification.Verify(CONDITION_OPEN.VietnamRcharge,PLAYER.CurrentActor);
mSprites["Recharge"].gameObject.SetActive(isOpen);
UIEventListener.Get(mSprites["Recharge"].gameObject).onClick = OnRechargeClick;
#endif
private void OnIOSRechargeClick (GameObject obj)
{
Application.OpenURL("https://baidu.com/");
}
OnIOSRechargeClick 和 OnRechargeClick 是同一个按钮上的两个点击事件
OnIOSRechargeClick 点击按钮 打开一个URL