安卓10及以下不开震动
This commit is contained in:
parent
8f6c6b9784
commit
1354870a77
Binary file not shown.
|
@ -322,6 +322,12 @@ public class JoyPacCurrentcyAdSingle
|
|||
_currentcyAdSinglePlugin.Call("nofityPush", delayTime);
|
||||
}
|
||||
|
||||
public int getAndroidVersion()
|
||||
{
|
||||
|
||||
return _currentcyAdSinglePlugin.Call<int>("getAndroidVersion");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -13,6 +13,14 @@ public class VibrationManager : SingletonMonoBehaviour<VibrationManager> {
|
|||
if(CheckInstance()){
|
||||
return;
|
||||
}
|
||||
#if UNITY_ANDROID
|
||||
JoyPacCurrentcyAdSingle currAdSingleTemp = new JoyPacCurrentcyAdSingle();
|
||||
if (currAdSingleTemp.getAndroidVersion() <= 10 && CryptoPrefs.GetInt("getAndroidVersion",0)==0)
|
||||
{
|
||||
SaveEnable(false);
|
||||
CryptoPrefs.SetInt("getAndroidVersion", 10);
|
||||
}
|
||||
#endif
|
||||
isEnable = UsayaStorageManager.LoadOrDefault(UsayaStorageFilename.Settings_Data, Const.VibrationTag, true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue