This repository was archived by the owner on May 9, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,8 @@ public void StartInspect(MouseInspectMode mode)
71
71
if ( ! MainCamera )
72
72
return ;
73
73
74
+ PanelDragger . ForceEnd ( ) ;
75
+
74
76
Mode = mode ;
75
77
Inspecting = true ;
76
78
UIManager . NavBarRect . gameObject . SetActive ( false ) ;
Original file line number Diff line number Diff line change @@ -17,6 +17,20 @@ public class PanelDragger
17
17
18
18
public static bool Resizing { get ; private set ; }
19
19
20
+ public static bool ResizePrompting => s_resizeCursorObj && s_resizeCursorObj . activeSelf ;
21
+
22
+ internal static void ForceEnd ( )
23
+ {
24
+ s_resizeCursorObj . SetActive ( false ) ;
25
+ wasAnyDragging = false ;
26
+
27
+ foreach ( var instance in Instances )
28
+ {
29
+ instance . WasDragging = false ;
30
+ instance . WasResizing = false ;
31
+ }
32
+ }
33
+
20
34
internal static List < PanelDragger > Instances = new List < PanelDragger > ( ) ;
21
35
22
36
static PanelDragger ( )
@@ -82,7 +96,6 @@ public static void UpdateInstances()
82
96
83
97
#endregion
84
98
85
- public static bool ResizePrompting => s_resizeCursorObj && s_resizeCursorObj . activeSelf ;
86
99
public static GameObject s_resizeCursorObj ;
87
100
88
101
internal static bool wasAnyDragging ;
You can’t perform that action at this time.
0 commit comments