상하 화설

This commit is contained in:
Ino 2026-01-15 08:12:15 +09:00
parent 388e109c5f
commit 258fb7791a
1 changed files with 4 additions and 4 deletions

View File

@ -255,17 +255,17 @@ public class Projectile : MonoBehaviour
if (m_ProjectileData.ArrowUpDown <= 0) return;
Vector3 hitPos = tf.position;
float spacing = 1.5f;
int count = m_ProjectileData.ArrowLeftRight;
float spacing = 0.5f;
int count = m_ProjectileData.ArrowUpDown;
var offsets = GetOffsets(count, spacing);
foreach (float offset in offsets)
{
// ▲ 위
SpawnExtra(hitPos + Vector3.right * offset, Vector2.up);
SpawnExtra(hitPos + Vector3.right * offset + Vector3.up * 1.5f, Vector2.up);
// ▼ 아래
SpawnExtra(hitPos + Vector3.right * offset, Vector2.down);
SpawnExtra(hitPos + Vector3.right * offset + Vector3.down * 0.5f, Vector2.down);
}
}
void Spawn_Bounce(MobActor mob)