(client) feat:实现实体动态创建,实体右键菜单

Co-authored-by: m0_75251201 <m0_75251201@noreply.gitcode.com>
Reviewed-on: Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite#41
This commit is contained in:
2025-07-25 19:16:58 +08:00
parent 28ddcda9a0
commit 82dc89c890
55 changed files with 2964 additions and 747 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,19 @@ 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);
entityManager.GenerateDefaultEntity(Vector3.down);
Debug.Log(chicken);
}
// Update is called once per frame