com.soosvet_games.common_tools 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -20,16 +20,16 @@ namespace SoosvetGames.CommonTools.Services.VibrationService
|
|
|
20
20
|
#endif
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
#if UNITY_IOS && !UNITY_EDITOR
|
|
23
24
|
public void VibrateIOS( ImpactFeedbackStyle style )
|
|
24
25
|
{
|
|
25
|
-
#if UNITY_IOS && !UNITY_EDITOR
|
|
26
26
|
Vibration.VibrateIOS( style );
|
|
27
|
-
#endif
|
|
28
27
|
}
|
|
28
|
+
#endif
|
|
29
29
|
|
|
30
|
+
#if UNITY_ANDROID && !UNITY_EDITOR
|
|
30
31
|
public void VibrateAndroid( VibrationType type )
|
|
31
32
|
{
|
|
32
|
-
#if UNITY_ANDROID && !UNITY_EDITOR
|
|
33
33
|
switch ( type )
|
|
34
34
|
{
|
|
35
35
|
case VibrationType.Pop:
|
|
@@ -47,7 +47,7 @@ namespace SoosvetGames.CommonTools.Services.VibrationService
|
|
|
47
47
|
default:
|
|
48
48
|
throw new ArgumentOutOfRangeException( nameof(type), type, null );
|
|
49
49
|
}
|
|
50
|
-
#endif
|
|
51
50
|
}
|
|
51
|
+
#endif
|
|
52
52
|
}
|
|
53
53
|
}
|