상하 화설
This commit is contained in:
parent
388e109c5f
commit
258fb7791a
|
|
@ -255,17 +255,17 @@ public class Projectile : MonoBehaviour
|
||||||
if (m_ProjectileData.ArrowUpDown <= 0) return;
|
if (m_ProjectileData.ArrowUpDown <= 0) return;
|
||||||
|
|
||||||
Vector3 hitPos = tf.position;
|
Vector3 hitPos = tf.position;
|
||||||
float spacing = 1.5f;
|
float spacing = 0.5f;
|
||||||
int count = m_ProjectileData.ArrowLeftRight;
|
int count = m_ProjectileData.ArrowUpDown;
|
||||||
var offsets = GetOffsets(count, spacing);
|
var offsets = GetOffsets(count, spacing);
|
||||||
|
|
||||||
foreach (float offset in offsets)
|
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)
|
void Spawn_Bounce(MobActor mob)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue