攻击范围bug修改
This commit is contained in:
parent
e181aec8b1
commit
9f99fc3d56
@ -359,7 +359,7 @@ private void GenerateBullet(float angle, Vector2 startPos, Vector2 changePos)//
|
||||
|
||||
|
||||
// 计算缩放因子,使得图片的直径与碰撞体的直径匹配
|
||||
characterClick.OrSizeX = role.AttackRange * 2f / characterClick.OrSizeX; // * 2f 因为 radius 是半径,图片的尺寸通常是直径
|
||||
characterClick.OrSizeX = role.AttackRange * 2f / characterClick.StartSizeX; // * 2f 因为 radius 是半径,图片的尺寸通常是直径
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user