Some more airplane game doodles
This commit is contained in:
29
Assets/Scripts/Minigames/Airplane/Data/PrefabSpawnEntry.cs
Normal file
29
Assets/Scripts/Minigames/Airplane/Data/PrefabSpawnEntry.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Minigames.Airplane.Data
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines a prefab with spawn position configuration.
|
||||
/// Used for positive/negative objects in the airplane minigame.
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class PrefabSpawnEntry
|
||||
{
|
||||
[Tooltip("Prefab to spawn")]
|
||||
public GameObject prefab;
|
||||
|
||||
[Tooltip("How to position this object vertically")]
|
||||
public SpawnPositionMode spawnPositionMode = SpawnPositionMode.SnapToGround;
|
||||
|
||||
[Tooltip("Y position to use (SpecifiedY mode)")]
|
||||
public float specifiedY;
|
||||
|
||||
[Tooltip("Min Y for random range (RandomRange mode)")]
|
||||
public float randomYMin = -5f;
|
||||
|
||||
[Tooltip("Max Y for random range (RandomRange mode)")]
|
||||
public float randomYMax = 5f;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user