Files
Flappy-Bird-AI-Driven-Result/Assets/Scripts/Gameplay/Ground/GroundSettings.cs
T
2026-03-16 14:38:46 +02:00

24 lines
796 B
C#

using UnityEngine;
namespace FlappyBird.Ground
{
[CreateAssetMenu(fileName = "GroundSettings", menuName = "FlappyBird/Ground Settings")]
public class GroundSettings : ScriptableObject
{
[Tooltip("World X position where the first ground segment starts.")]
public float spawnX = -5f;
[Tooltip("World X position where ground segments are returned to the pool.")]
public float despawnX = -15f;
[Tooltip("The exact width of the ground sprite/collider to ensure seamless looping.")]
public float groundWidth = 10f;
[Tooltip("World Y position where the ground is placed.")]
public float yPosition = -4f;
[Tooltip("Number of ground segments to create up front.")]
public int initialPoolSize = 3;
}
}