修复旋转问题 + 防御塔范围可视化

- BasicBearingComp 和 ShooterBullet 的旋转由之前的 3D 方式调整为只旋转 Z 轴
- DefenseTowerController 通过 LineRenderer 添加了攻击范围可视化
This commit is contained in:
SepComet
2026-03-02 10:15:13 +08:00
parent 564817d752
commit 344191a91c
11 changed files with 324 additions and 35 deletions
@@ -17,7 +17,6 @@ namespace GeometryTD.Entity.EntityData
int entityId,
int typeId,
Vector3 position,
Quaternion rotation,
Transform target,
int damage,
float speed,
@@ -25,7 +24,7 @@ namespace GeometryTD.Entity.EntityData
float maxLifetime = 3f) : base(entityId, typeId)
{
Position = position;
Rotation = rotation;
_target = target;
_damage = damage;
_speed = speed;