(client) feat:右键菜单全局与UI分离,Building生成支持,双层地图重写

This commit is contained in:
m0_75251201
2025-08-11 12:45:52 +08:00
parent 670f778eee
commit 9922f06990
30 changed files with 1060 additions and 1986 deletions

View File

@ -0,0 +1,36 @@
using Base;
using Data;
using UnityEngine;
namespace Entity
{
public class Building:Entity
{
public override void SetTarget(Vector3 pos)
{
}
protected override void UpdatePlayerControls()
{
if (Input.GetKeyDown(KeyCode.W))
{
transform.position += Vector3.up;
}
if (Input.GetKeyDown(KeyCode.A))
{
transform.position += Vector3.left;
}
if (Input.GetKeyDown(KeyCode.S))
{
transform.position += Vector3.down;
}
if (Input.GetKeyDown(KeyCode.D))
{
transform.position += Vector3.right;
}
}
}
}