(client) feat:完成实体生成函数,修复行为树加载错误,改进Define打印缩进

This commit is contained in:
m0_75251201
2025-07-22 14:40:24 +08:00
parent 506d0a68a8
commit a6dfbd7c68
26 changed files with 835 additions and 527 deletions

View File

@ -1,31 +0,0 @@
using Base;
using UnityEngine;
namespace Test
{
public class ClockTest : MonoBehaviour
{
//private static float timer = 0;
// Start is called once before the first execution of Update after the MonoBehaviour is created
private void Start()
{
var clock = Clock.Instance;
}
// Update is called once per frame
//void Update()
//{
// if (Input.GetKeyUp(KeyCode.W))
// {
// SceneManager.LoadScene("SampleScene");
// }
// if (timer > 1)
// {
// timer -= 1;
// Debug.Log("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD>ӳ<EFBFBD>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD>");
// }
// timer += Time.deltaTime;
//}
}
}

View File

@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: be939c7ca1c4f374b83b6535b3cbb656

View File

@ -1,3 +1,6 @@
using System;
using Data;
using Managers;
using UnityEngine;
namespace Test
@ -6,11 +9,17 @@ namespace Test
public class TestDefine : MonoBehaviour
{
// Start is called once before the first execution of Update after the MonoBehaviour is created
public EntityManage entityManager;
void Awake()
{
Managers.DefineManager.Instance.Init();
Debug.Log(Managers.DefineManager.Instance);
}
private void Start()
{
var chicken = Managers.DefineManager.Instance.FindDefine<CharacterDef>("testPawn");
entityManager.GenerateEntity(chicken,Vector3.zero);
Debug.Log(chicken);
}
// Update is called once per frame