ui基本完毕,修了一大把的bug
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
using System.Diagnostics;
|
||||
// NOTE: Windows-only. Launches an external Flutter .exe via Process.Start and
|
||||
// controls its native window. Wrapped in UNITY_STANDALONE_WIN so the Windows
|
||||
// build/logic is unchanged while Android compiles this class out.
|
||||
#if UNITY_STANDALONE_WIN
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using UnityEngine;
|
||||
using System;
|
||||
@@ -713,3 +717,4 @@ public class WebViewLauncher : MonoBehaviour
|
||||
WebViewReady?.Invoke();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
using UnityEngine;
|
||||
// NOTE: Windows-only. Depends on WebViewWin32 (user32.dll) and WebViewLauncher,
|
||||
// which are Windows-only. Wrapped in UNITY_STANDALONE_WIN so the Windows
|
||||
// build/logic is unchanged while Android compiles this class out.
|
||||
#if UNITY_STANDALONE_WIN
|
||||
using UnityEngine;
|
||||
using Bansonic;
|
||||
|
||||
public class WebViewPanelFollower : MonoBehaviour
|
||||
@@ -154,3 +158,4 @@ public class WebViewPanelFollower : MonoBehaviour
|
||||
return a.Left == b.Left && a.Top == b.Top && a.Right == b.Right && a.Bottom == b.Bottom;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
using System;
|
||||
// NOTE: Windows-only. Uses user32.dll P/Invoke, which does not compile on Android.
|
||||
// Wrapped in UNITY_STANDALONE_WIN so the Windows build/logic is unchanged while
|
||||
// Android simply compiles this class out.
|
||||
#if UNITY_STANDALONE_WIN
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.InteropServices;
|
||||
using UnityEngine;
|
||||
@@ -268,3 +272,4 @@ public static class WebViewWin32
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
// NOTE: Windows-only. Depends on WebViewLauncher (external Flutter .exe launcher),
|
||||
// which is Windows-only. Wrapped in UNITY_STANDALONE_WIN so the Windows
|
||||
// build/logic is unchanged while Android compiles this class out.
|
||||
#if UNITY_STANDALONE_WIN
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using UnityEngine.EventSystems;
|
||||
@@ -193,3 +197,4 @@ public class game_card_Prefab : MonoBehaviour, IPointerClickHandler
|
||||
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
// NOTE: Windows-only. Depends on WebViewLauncher (external Flutter .exe / native
|
||||
// window control), which is Windows-only. Wrapped in UNITY_STANDALONE_WIN so the
|
||||
// Windows build/logic is unchanged while Android compiles this class out.
|
||||
#if UNITY_STANDALONE_WIN
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using System.IO;
|
||||
@@ -287,3 +291,4 @@ public class loadLittleGamesPrefab : MonoBehaviour
|
||||
return raw.Replace("-", "\n").Replace("/", "\n").Replace("_", "\n");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user