修改时间锁

This commit is contained in:
shenjianxing 2025-04-23 10:37:52 +08:00
parent 672ddd6570
commit 988b770b16
2 changed files with 10 additions and 3 deletions

View File

@ -989,7 +989,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 718cf7f3f1b16f141ab751a37af8cae1, type: 3}
m_Name:
m_EditorClassIdentifier:
ui: {fileID: 0}
ui: {fileID: 7245332692720103295}
text: {fileID: 4601331229292980818}
btn: {fileID: 7231834583498103603}
--- !u!1 &2114935602
@ -1317,7 +1317,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0, g: 0, b: 0, a: 0.5019608}
m_Color: {r: 0, g: 0, b: 0, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1

View File

@ -19,7 +19,10 @@ public class DateManager : MonoBehaviour
{
Application.Quit();
});
UpdateTime(ShowTip, ShowTip);
UpdateTime(ShowTip, ShowTip, () =>
{
gameObject.SetActive(false);
});
}
public void ShowTip(string str)
@ -36,6 +39,10 @@ public class DateManager : MonoBehaviour
try
{
string datas = DecryptFileReader.ReadAndDecryptData("Timer.txt");
if (string.IsNullOrEmpty(datas))
{
updateTimer?.Invoke();
}
EndTimer = datas.Split('|')[0];
RecordData = datas.Split('|')[1];
//第一次获取获取系统时间