Initial Commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user