Some more airplane game doodles

This commit is contained in:
Michal Pikulski
2025-12-08 12:56:14 +01:00
parent 861749485e
commit 41d99a1390
58 changed files with 3319 additions and 147 deletions

View 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;
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: d0290f7749fa4d2bb5cc8830a371705f
timeCreated: 1765189597

View File

@@ -0,0 +1,24 @@
namespace Minigames.Airplane.Data
{
/// <summary>
/// Defines how spawned objects are positioned vertically.
/// </summary>
public enum SpawnPositionMode
{
/// <summary>
/// Raycast down to find ground and snap object's bottom to ground surface.
/// </summary>
SnapToGround,
/// <summary>
/// Spawn at a specific Y coordinate.
/// </summary>
SpecifiedY,
/// <summary>
/// Spawn at a random Y coordinate within a specified range.
/// </summary>
RandomRange
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 97deb3f78d56408e83dc9f766418a5a2
timeCreated: 1765189120