热更系统修改并测试
This commit is contained in:
9
Assets/GameScripts/Preload/GamePreload.cs
Normal file
9
Assets/GameScripts/Preload/GamePreload.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class GamePreload : Singleton<GamePreload>
|
||||
{
|
||||
public void Test(string msg)
|
||||
{
|
||||
Debug.Log($"GamePreload.Test:{msg}");
|
||||
}
|
||||
}
|
||||
2
Assets/GameScripts/Preload/GamePreload.cs.meta
Normal file
2
Assets/GameScripts/Preload/GamePreload.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f70a842d4d8919e41a34b7ad7012e9ff
|
||||
@@ -14,6 +14,7 @@ public class PatchWindow : MonoBehaviour
|
||||
PatchEvent.OnStatusUpdate += OnStatusUpdate;
|
||||
PatchEvent.OnProgressUpdate += OnProgressUpdate;
|
||||
PatchEvent.OnDownloadSizeUpdate += OnDownloadSizeUpdate;
|
||||
PatchEvent.OnClosePatchWindow += OnClosePatchWindow;
|
||||
}
|
||||
private void OnDestroy()
|
||||
{
|
||||
@@ -39,4 +40,8 @@ public class PatchWindow : MonoBehaviour
|
||||
if (downloadSizeText != null)
|
||||
downloadSizeText.text = sizeText;
|
||||
}
|
||||
private void OnClosePatchWindow()
|
||||
{
|
||||
gameObject.SetActive(false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user