com.soosvet_games.common_tools 1.1.0 → 1.1.2

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.
@@ -8,24 +8,9 @@ namespace SoosvetGames.CommonTools.Extensions.Editor
8
8
  {
9
9
  static HierarchyActivationTool()
10
10
  {
11
- #if UNITY_6000_3_OR_NEWER
12
- EditorApplication.hierarchyWindowItemByEntityIdOnGUI += HierarchyWindowOnGui;
13
- #else
14
11
  EditorApplication.hierarchyWindowItemOnGUI += HierarchyWindowOnGui;
15
- #endif
16
12
  }
17
13
 
18
- #if UNITY_6000_3_OR_NEWER
19
-
20
- private static void HierarchyWindowOnGui(EntityId entityId, Rect selectionRect)
21
- {
22
- var obj = EditorUtility.EntityIdToObject(entityId) as GameObject;
23
-
24
- DrawToggle(obj, selectionRect);
25
- }
26
-
27
- #else
28
-
29
14
  private static void HierarchyWindowOnGui( int instanceId, Rect selectionRect )
30
15
  {
31
16
  var obj = EditorUtility.InstanceIDToObject( instanceId ) as GameObject;
@@ -33,8 +18,6 @@ namespace SoosvetGames.CommonTools.Extensions.Editor
33
18
  DrawToggle( obj, selectionRect );
34
19
  }
35
20
 
36
- #endif
37
-
38
21
  private static void DrawToggle( GameObject obj, Rect selectionRect )
39
22
  {
40
23
  if ( obj == null )
@@ -18,6 +18,7 @@ namespace SoosvetGames.CommonTools.Services.VibrationService
18
18
  #endif
19
19
  }
20
20
 
21
+ #if UNITY_IOS || UNITY_EDITOR
21
22
  public void VibrateIOS( ImpactFeedbackStyle style )
22
23
  {
23
24
  #if UNITY_EDITOR
@@ -25,6 +26,7 @@ namespace SoosvetGames.CommonTools.Services.VibrationService
25
26
  #endif
26
27
  Vibration.VibrateIOS( style );
27
28
  }
29
+ #endif
28
30
 
29
31
  public void VibrateAndroid( VibrationType type )
30
32
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name" : "com.soosvet_games.common_tools",
3
3
  "displayName" : "Soosvet Games Common Tools",
4
- "version" : "1.1.0",
4
+ "version" : "1.1.2",
5
5
  "author" : "Soosvet Games",
6
6
  "description" : "Common tools for Unity.",
7
7
  "repository": {