删除冗余信息
This commit is contained in:
parent
90940ae5dc
commit
0a2ce83bea
|
|
@ -1,4 +1,5 @@
|
||||||
using DG.Tweening;
|
using DG.Tweening;
|
||||||
|
using System;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
@ -92,4 +93,29 @@ public class ToolFuncManager : MonoBehaviour
|
||||||
image.color = finalColor;
|
image.color = finalColor;
|
||||||
}).SetLoops(-1, LoopType.Yoyo);//HQB 原始数值:1,0.
|
}).SetLoops(-1, LoopType.Yoyo);//HQB 原始数值:1,0.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static Vector3 Parse(string vectorString)
|
||||||
|
{
|
||||||
|
if (vectorString.StartsWith("(") && vectorString.EndsWith(")"))
|
||||||
|
{
|
||||||
|
vectorString = vectorString.Substring(1, vectorString.Length - 2);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 分割字符串,假设格式是 "x,y,z"
|
||||||
|
string[] parts = vectorString.Split(',');
|
||||||
|
|
||||||
|
// 确保字符串包含三个部分
|
||||||
|
if (parts.Length != 3)
|
||||||
|
{
|
||||||
|
throw new FormatException("Input string is not in a valid Vector3 format.");
|
||||||
|
}
|
||||||
|
|
||||||
|
// 解析浮点数
|
||||||
|
float x = float.Parse(parts[0].Trim());
|
||||||
|
float y = float.Parse(parts[1].Trim());
|
||||||
|
float z = float.Parse(parts[2].Trim());
|
||||||
|
|
||||||
|
// 返回新的Vector3对象
|
||||||
|
return new Vector3(x, y, z);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,6 @@ public class SecurityCheck : MonoBehaviour
|
||||||
public bool ForcePassBlack = true;
|
public bool ForcePassBlack = true;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// 获取文件哈希值的方法
|
// 获取文件哈希值的方法
|
||||||
private string GetHash(string path)
|
private string GetHash(string path)
|
||||||
{
|
{
|
||||||
|
|
@ -128,7 +127,7 @@ public class SecurityCheck : MonoBehaviour
|
||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
if (ForcePassBlack)
|
if (ForcePassBlack)
|
||||||
result = true;
|
result = true;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Awake()
|
private void Awake()
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,7 @@ public class DataManager : BaseManager<DataManager>
|
||||||
toolAndMaterialDic.Add(tB_ToolAndMaterial.id, tB_ToolAndMaterial);
|
toolAndMaterialDic.Add(tB_ToolAndMaterial.id, tB_ToolAndMaterial);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private void ReadSubecjtXML(string path)
|
public void ReadSubecjtXML(string path)
|
||||||
{
|
{
|
||||||
XmlDocument xmlDoc = new XmlDocument();
|
XmlDocument xmlDoc = new XmlDocument();
|
||||||
xmlDoc.Load(path);
|
xmlDoc.Load(path);
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@ public class UI_MainTitlePanel : BasePanel
|
||||||
modelText.text = mode;
|
modelText.text = mode;
|
||||||
|
|
||||||
}
|
}
|
||||||
private void InitializationUI()
|
public void InitializationUI()
|
||||||
{
|
{
|
||||||
GetControl<Button>("upExamBtn").gameObject.SetActive(RunModelMgr.Instance.ModeType == E_ModeType.Exam);
|
GetControl<Button>("upExamBtn").gameObject.SetActive(RunModelMgr.Instance.ModeType == E_ModeType.Exam);
|
||||||
GetControl<Button>("submitBtn").gameObject.SetActive(RunModelMgr.Instance.ModeType == E_ModeType.Practice);
|
GetControl<Button>("submitBtn").gameObject.SetActive(RunModelMgr.Instance.ModeType == E_ModeType.Practice);
|
||||||
|
|
@ -137,20 +137,6 @@ public class UI_MainTitlePanel : BasePanel
|
||||||
case "upExamBtn":
|
case "upExamBtn":
|
||||||
print("交卷");
|
print("交卷");
|
||||||
GameManager.EventMgr.EventTrigger(Enum_EventType.Submit);
|
GameManager.EventMgr.EventTrigger(Enum_EventType.Submit);
|
||||||
//GameManager.EventMgr.EventTrigger(Enum_EventType.UpExam);
|
|
||||||
//GameManager.UIMgr.ShowPanel<UI_MessagePanel>(E_UI_Layer.System,
|
|
||||||
// (panel) =>
|
|
||||||
// {
|
|
||||||
// panel.Init("提示", "确定要交卷吗?", E_MessageType.Error,
|
|
||||||
// () =>
|
|
||||||
// {
|
|
||||||
// GameManager.UIMgr.ShowPanel<UI_ExamEnd>();
|
|
||||||
// },
|
|
||||||
// () =>
|
|
||||||
// {
|
|
||||||
// Debug.Log("取消");
|
|
||||||
// });
|
|
||||||
// });
|
|
||||||
break;
|
break;
|
||||||
case "submitBtn":
|
case "submitBtn":
|
||||||
GameManager.UIMgr.ShowPanel<UI_PracticeCompletedPanel>(E_UI_Layer.Mid, (p) =>
|
GameManager.UIMgr.ShowPanel<UI_PracticeCompletedPanel>(E_UI_Layer.Mid, (p) =>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue