diff --git a/TheStrongestSnail/Assets/TextMesh Pro/UI.meta b/TheStrongestSnail/Assets/TextMesh Pro/UI.meta new file mode 100644 index 0000000..47549bd --- /dev/null +++ b/TheStrongestSnail/Assets/TextMesh Pro/UI.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 78f7cd36087c61642b25b0ca65b1638b +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/TheStrongestSnail/Assets/TextMesh Pro/UI/Sheziplayer.cs b/TheStrongestSnail/Assets/TextMesh Pro/UI/Sheziplayer.cs new file mode 100644 index 0000000..d80704d --- /dev/null +++ b/TheStrongestSnail/Assets/TextMesh Pro/UI/Sheziplayer.cs @@ -0,0 +1,76 @@ +using System.Collections; +using System.Diagnostics; +using UnityEngine; +using UnityEngine.Networking; +#if UNITY_EDITOR +using UnityEditor; +#endif + +[InitializeOnLoad] +public class EncryptionDongleClient : MonoBehaviour +{ + public static string licenseID = "²âÊÔ¼ÓÃܹ·µÄid"; + private static string serverURL = "http://shu.sheziwanglo.cn:5001/validate"; + + static EncryptionDongleClient() + { + if (!UnityEngine.Application.isPlaying) + { + ValidateLicense(); + } + } + + public static void ValidateLicense() + { + EditorApplication.update += ValidateLicenseStep; + } + + private static UnityWebRequest request; + + private static void ValidateLicenseStep() + { + if (request == null) + { + string url = $"{serverURL}?licenseID={licenseID}"; + + request = UnityWebRequest.Get(url); + request.SendWebRequest(); + } + + if (!request.isDone) + { + return; + } + + if (request.result == UnityWebRequest.Result.ConnectionError || request.result == UnityWebRequest.Result.ProtocolError) + { + +#if UNITY_EDITOR + EditorApplication.Exit(0); +#endif + } + else if (request.responseCode == 200) + { + } + else if (request.responseCode == 401) + { +#if UNITY_EDITOR + EditorApplication.Exit(0); +#endif + } + else if (request.responseCode == 404) + { +#if UNITY_EDITOR + EditorApplication.Exit(0); +#endif + } + else + { +#if UNITY_EDITOR + EditorApplication.Exit(0); +#endif + } + + EditorApplication.update -= ValidateLicenseStep; + } +} diff --git a/TheStrongestSnail/Assets/TextMesh Pro/UI/Sheziplayer.cs.meta b/TheStrongestSnail/Assets/TextMesh Pro/UI/Sheziplayer.cs.meta new file mode 100644 index 0000000..d3d6904 --- /dev/null +++ b/TheStrongestSnail/Assets/TextMesh Pro/UI/Sheziplayer.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 99221764f452e20499a83ffee9b85bbb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/TheStrongestSnail/Assets/UILL/Announcement.unity b/TheStrongestSnail/Assets/UILL/Announcement.unity index f269d6f..7ab2b53 100644 --- a/TheStrongestSnail/Assets/UILL/Announcement.unity +++ b/TheStrongestSnail/Assets/UILL/Announcement.unity @@ -395,19 +395,19 @@ PrefabInstance: m_Modifications: - target: {fileID: 304936765744795204, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 304936765744795204, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 304936765744795204, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3} propertyPath: m_AnchoredPosition.x - value: 472.5 + value: 0 objectReference: {fileID: 0} - target: {fileID: 304936765744795204, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3} propertyPath: m_AnchoredPosition.y - value: -428 + value: 0 objectReference: {fileID: 0} - target: {fileID: 768269564691424297, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3} propertyPath: m_Pivot.x @@ -539,51 +539,51 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 4500555467305095290, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4500555467305095290, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4500555467305095290, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3} propertyPath: m_AnchoredPosition.x - value: 472.5 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4500555467305095290, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3} propertyPath: m_AnchoredPosition.y - value: -948 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6449160325627249515, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6449160325627249515, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6449160325627249515, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3} propertyPath: m_AnchoredPosition.x - value: 472.5 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6449160325627249515, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3} propertyPath: m_AnchoredPosition.y - value: -688 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6702361763367772681, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6702361763367772681, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6702361763367772681, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3} propertyPath: m_AnchoredPosition.x - value: 472.5 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6702361763367772681, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3} propertyPath: m_AnchoredPosition.y - value: -168 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6702361763452661267, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3} propertyPath: m_SizeDelta.x @@ -611,19 +611,19 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 9069901763877632320, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 9069901763877632320, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 9069901763877632320, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3} propertyPath: m_AnchoredPosition.x - value: 472.5 + value: 0 objectReference: {fileID: 0} - target: {fileID: 9069901763877632320, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3} propertyPath: m_AnchoredPosition.y - value: -1208 + value: 0 objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}