更新框架

main
刘涛 2025-08-11 15:52:55 +08:00
parent 79ea85839f
commit c23a57ccc3
5 changed files with 33 additions and 67631 deletions

View File

@ -1,4 +1,5 @@
using System.Collections.Generic;
using PhxhSDK;
using PhxhSDK.AOT;
using UnityEngine;
using PhxhSDK.Phxh;
@ -60,12 +61,14 @@ public class LegionLevelEditor : MonoBehaviour
private void Awake()
{
if (BusyWrapper.isBusy)
return;
LevelData = JsonToLevelData(_levelDataJson);
}
private void OnDestroy()
{
if (YooAssetBuildStatus.isInBuild)
if (BusyWrapper.isBusy)
return;
SaveLevelData();
}

View File

@ -2,6 +2,7 @@ using PhxhSDK.AOT;
using UnityEngine;
using PhxhSDK.Phxh;
using Gameplay.Level;
using PhxhSDK;
using Sirenix.OdinInspector;
using Debug = UnityEngine.Debug;
@ -85,18 +86,22 @@ public class LevelEditor : MonoBehaviour
private void Awake()
{
if (BusyWrapper.isBusy)
return;
LevelData = JsonToLevelData(_levelDataJson);
}
private void OnDestroy()
{
if (YooAssetBuildStatus.isInBuild)
if (BusyWrapper.isBusy)
return;
SaveLevelData();
}
public void SaveLevelData()
{
if (BusyWrapper.isBusy)
return;
#if UNITY_EDITOR
var currentScene = gameObject.scene;

View File

@ -5,6 +5,7 @@ using System.Linq;
using UnityEngine;
using File = System.IO.File;
using System.Collections.Generic;
using PhxhSDK;
#if UNITY_EDITOR
using UnityEditor;
@ -236,6 +237,8 @@ public class MapManager : MonoBehaviour
private void OnEnable()
{
if (BusyWrapper.isBusy)
return;
if (!Application.isPlaying)
{
Refresh();
@ -280,7 +283,7 @@ public class MapManager : MonoBehaviour
private void OnDestroy()
{
if (YooAssetBuildStatus.isInBuild)
if (BusyWrapper.isBusy)
return;
if (!Application.isPlaying)
SaveMapData();

@ -1 +1 @@
Subproject commit 175a463d16b9b88f40f52b5ccae75755a02dae16
Subproject commit 757a13336e12c6a97910f037dfe27ed0e754b62f

File diff suppressed because it is too large Load Diff