public static void FloorSpikeTargetPlayer(Boss b, AttackGroup a, FloorSpike.Data d, RuntimeAnimatorController animator) { if (b.player != null) { FloorSpike(b, d, animator, b.player.transform.position.x); } a.StartCooldown(); }
// Summon multiple floor spikes. public static void FloorSpikes(Boss b, AttackGroup a, FloorSpike.Data d, RuntimeAnimatorController animator, float count) { Room room = b.room; int trueCount = Mathf.FloorToInt(count); for (int i = 0; i < trueCount; ++i) { FloorSpike(b, d, animator, room.GetRandomFloorXPosition()); } a.StartCooldown(); }