(client)feat:dev菜单可用生成实体
This commit is contained in:
@ -5,7 +5,7 @@ using UnityEngine;
|
||||
|
||||
namespace Managers
|
||||
{
|
||||
public class EntityManage:MonoBehaviour
|
||||
public class EntityManage:Utils.MonoSingleton<EntityManage>
|
||||
{
|
||||
public Dictionary<string, List<EntityPrefab>> factionEntities = new();
|
||||
|
||||
@ -84,5 +84,10 @@ namespace Managers
|
||||
Debug.LogError($"An error occurred while generating the entity: {ex.Message}");
|
||||
}
|
||||
}
|
||||
|
||||
protected override void OnStart()
|
||||
{
|
||||
factionEntities.Clear();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user