using Minigames.Airplane.Data; using UnityEngine; namespace Minigames.Airplane.Data { /// /// Component to store spawn positioning data on prefabs. /// Attach this to obstacle prefabs that need specific positioning behavior. /// If not present, spawner will use default positioning from AirplaneSettings. /// [AddComponentMenu("Airplane/Prefab Spawn Entry")] public class PrefabSpawnEntryComponent : MonoBehaviour { [Tooltip("How to position this object vertically")] public SpawnPositionMode spawnPositionMode = SpawnPositionMode.SnapToGround; [Tooltip("Y position to use (when mode is SpecifiedY)")] public float specifiedY; [Tooltip("Min Y for random range (when mode is RandomRange)")] public float randomYMin = -5f; [Tooltip("Max Y for random range (when mode is RandomRange)")] public float randomYMax = 5f; } }