保密狗的添加
This commit is contained in:
parent
aafb06ce93
commit
3a1debee82
8
TheStrongestSnail/Assets/TextMesh Pro/UI.meta
Normal file
8
TheStrongestSnail/Assets/TextMesh Pro/UI.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 78f7cd36087c61642b25b0ca65b1638b
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
76
TheStrongestSnail/Assets/TextMesh Pro/UI/Sheziplayer.cs
Normal file
76
TheStrongestSnail/Assets/TextMesh Pro/UI/Sheziplayer.cs
Normal file
@ -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;
|
||||||
|
}
|
||||||
|
}
|
11
TheStrongestSnail/Assets/TextMesh Pro/UI/Sheziplayer.cs.meta
Normal file
11
TheStrongestSnail/Assets/TextMesh Pro/UI/Sheziplayer.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 99221764f452e20499a83ffee9b85bbb
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -395,19 +395,19 @@ PrefabInstance:
|
|||||||
m_Modifications:
|
m_Modifications:
|
||||||
- target: {fileID: 304936765744795204, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
- target: {fileID: 304936765744795204, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
||||||
propertyPath: m_AnchorMax.y
|
propertyPath: m_AnchorMax.y
|
||||||
value: 1
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 304936765744795204, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
- target: {fileID: 304936765744795204, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
||||||
propertyPath: m_AnchorMin.y
|
propertyPath: m_AnchorMin.y
|
||||||
value: 1
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 304936765744795204, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
- target: {fileID: 304936765744795204, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
||||||
propertyPath: m_AnchoredPosition.x
|
propertyPath: m_AnchoredPosition.x
|
||||||
value: 472.5
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 304936765744795204, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
- target: {fileID: 304936765744795204, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
||||||
propertyPath: m_AnchoredPosition.y
|
propertyPath: m_AnchoredPosition.y
|
||||||
value: -428
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 768269564691424297, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
- target: {fileID: 768269564691424297, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
||||||
propertyPath: m_Pivot.x
|
propertyPath: m_Pivot.x
|
||||||
@ -539,51 +539,51 @@ PrefabInstance:
|
|||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 4500555467305095290, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
- target: {fileID: 4500555467305095290, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
||||||
propertyPath: m_AnchorMax.y
|
propertyPath: m_AnchorMax.y
|
||||||
value: 1
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 4500555467305095290, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
- target: {fileID: 4500555467305095290, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
||||||
propertyPath: m_AnchorMin.y
|
propertyPath: m_AnchorMin.y
|
||||||
value: 1
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 4500555467305095290, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
- target: {fileID: 4500555467305095290, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
||||||
propertyPath: m_AnchoredPosition.x
|
propertyPath: m_AnchoredPosition.x
|
||||||
value: 472.5
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 4500555467305095290, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
- target: {fileID: 4500555467305095290, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
||||||
propertyPath: m_AnchoredPosition.y
|
propertyPath: m_AnchoredPosition.y
|
||||||
value: -948
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 6449160325627249515, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
- target: {fileID: 6449160325627249515, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
||||||
propertyPath: m_AnchorMax.y
|
propertyPath: m_AnchorMax.y
|
||||||
value: 1
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 6449160325627249515, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
- target: {fileID: 6449160325627249515, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
||||||
propertyPath: m_AnchorMin.y
|
propertyPath: m_AnchorMin.y
|
||||||
value: 1
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 6449160325627249515, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
- target: {fileID: 6449160325627249515, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
||||||
propertyPath: m_AnchoredPosition.x
|
propertyPath: m_AnchoredPosition.x
|
||||||
value: 472.5
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 6449160325627249515, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
- target: {fileID: 6449160325627249515, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
||||||
propertyPath: m_AnchoredPosition.y
|
propertyPath: m_AnchoredPosition.y
|
||||||
value: -688
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 6702361763367772681, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
- target: {fileID: 6702361763367772681, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
||||||
propertyPath: m_AnchorMax.y
|
propertyPath: m_AnchorMax.y
|
||||||
value: 1
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 6702361763367772681, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
- target: {fileID: 6702361763367772681, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
||||||
propertyPath: m_AnchorMin.y
|
propertyPath: m_AnchorMin.y
|
||||||
value: 1
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 6702361763367772681, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
- target: {fileID: 6702361763367772681, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
||||||
propertyPath: m_AnchoredPosition.x
|
propertyPath: m_AnchoredPosition.x
|
||||||
value: 472.5
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 6702361763367772681, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
- target: {fileID: 6702361763367772681, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
||||||
propertyPath: m_AnchoredPosition.y
|
propertyPath: m_AnchoredPosition.y
|
||||||
value: -168
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 6702361763452661267, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
- target: {fileID: 6702361763452661267, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
||||||
propertyPath: m_SizeDelta.x
|
propertyPath: m_SizeDelta.x
|
||||||
@ -611,19 +611,19 @@ PrefabInstance:
|
|||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 9069901763877632320, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
- target: {fileID: 9069901763877632320, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
||||||
propertyPath: m_AnchorMax.y
|
propertyPath: m_AnchorMax.y
|
||||||
value: 1
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 9069901763877632320, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
- target: {fileID: 9069901763877632320, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
||||||
propertyPath: m_AnchorMin.y
|
propertyPath: m_AnchorMin.y
|
||||||
value: 1
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 9069901763877632320, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
- target: {fileID: 9069901763877632320, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
||||||
propertyPath: m_AnchoredPosition.x
|
propertyPath: m_AnchoredPosition.x
|
||||||
value: 472.5
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 9069901763877632320, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
- target: {fileID: 9069901763877632320, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
||||||
propertyPath: m_AnchoredPosition.y
|
propertyPath: m_AnchoredPosition.y
|
||||||
value: -1208
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
m_RemovedComponents: []
|
m_RemovedComponents: []
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: 1c4b10beab5d8ea41a614b099b8aaf71, type: 3}
|
||||||
|
Loading…
Reference in New Issue
Block a user