Update UIExtension.cs

This commit is contained in:
ALEXTANG
2023-04-21 14:03:23 +08:00
parent ef8fe7f3a0
commit 6ba385d59e

View File

@@ -85,7 +85,7 @@ public static class UIExtension
public static bool GetMouseDownUiPos(this UIModule uiModule, out Vector3 screenPos) public static bool GetMouseDownUiPos(this UIModule uiModule, out Vector3 screenPos)
{ {
bool hadMouseDown = false; bool hadMouseDown = false;
Vector3 mousePos; Vector3 mousePos = Vector3.zero;
#if UNITY_EDITOR || PLATFORM_STANDALONE_WIN #if UNITY_EDITOR || PLATFORM_STANDALONE_WIN
mousePos = Input.mousePosition; mousePos = Input.mousePosition;