修复旋转问题 + 防御塔范围可视化
- BasicBearingComp 和 ShooterBullet 的旋转由之前的 3D 方式调整为只旋转 Z 轴 - DefenseTowerController 通过 LineRenderer 添加了攻击范围可视化
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user