mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
Update
Update
This commit is contained in:
@@ -35,6 +35,7 @@ namespace GameLogic
|
||||
|
||||
public override void OnRefresh()
|
||||
{
|
||||
m_textScore.text = "Score : 0";
|
||||
m_goOverView.SetActive(false);
|
||||
}
|
||||
|
||||
@@ -43,14 +44,10 @@ namespace GameLogic
|
||||
private async UniTaskVoid OnClickRestartBtn()
|
||||
{
|
||||
await UniTask.Yield();
|
||||
// yield return YooAssets.LoadSceneAsync("scene_battle");
|
||||
//
|
||||
// _battleRoom = new BattleRoom();
|
||||
// yield return _battleRoom.LoadRoom();
|
||||
//
|
||||
// // 释放资源
|
||||
// var package = YooAssets.GetPackage("DefaultPackage");
|
||||
// package.UnloadUnusedAssets();
|
||||
await GameModule.Resource.LoadSceneAsync("scene_battle").ToUniTask(Utility.Unity.Behaviour);
|
||||
|
||||
BattleSystem.Instance.DestroyRoom();
|
||||
await BattleSystem.Instance.LoadRoom().ToUniTask(Utility.Unity.Behaviour);
|
||||
}
|
||||
|
||||
private async UniTaskVoid OnClickHomeBtn()
|
||||
|
Reference in New Issue
Block a user