Working MVP code for Valentines
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
namespace Minigames.Airplane.Data
|
||||
{
|
||||
/// <summary>
|
||||
/// Camera states for the airplane minigame
|
||||
/// </summary>
|
||||
public enum AirplaneCameraState
|
||||
{
|
||||
Intro, // Intro sequence camera
|
||||
NextPerson, // Camera focusing on the next person
|
||||
Aiming, // Camera for aiming the airplane
|
||||
Flight // Camera following the airplane in flight
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f5b6a3623e7040be9dfeac6ee8e195cf
|
||||
timeCreated: 1764851235
|
||||
16
Assets/Scripts/Minigames/Airplane/Data/AirplaneGameState.cs
Normal file
16
Assets/Scripts/Minigames/Airplane/Data/AirplaneGameState.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace Minigames.Airplane.Data
|
||||
{
|
||||
/// <summary>
|
||||
/// Game states for the airplane minigame
|
||||
/// </summary>
|
||||
public enum AirplaneGameState
|
||||
{
|
||||
Intro, // Intro sequence
|
||||
NextPerson, // Introducing the next person
|
||||
Aiming, // Player is aiming the airplane
|
||||
Flying, // Airplane is in flight
|
||||
Evaluating, // Evaluating the result of the flight
|
||||
GameOver // All people have had their turn
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 59636bd1dbca4575b431820510da201f
|
||||
timeCreated: 1764851235
|
||||
52
Assets/Scripts/Minigames/Airplane/Data/PersonData.cs
Normal file
52
Assets/Scripts/Minigames/Airplane/Data/PersonData.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Minigames.Airplane.Data
|
||||
{
|
||||
/// <summary>
|
||||
/// Data for a person participating in the airplane minigame.
|
||||
/// Contains their name, target assignment, and scene reference.
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
public class PersonData
|
||||
{
|
||||
[Tooltip("Name of the person")]
|
||||
public string personName;
|
||||
|
||||
[Tooltip("Target name they need to hit")]
|
||||
public string targetName;
|
||||
|
||||
[Tooltip("Transform reference to the person in the scene")]
|
||||
public Transform personTransform;
|
||||
|
||||
[Tooltip("Turn number (assigned at runtime)")]
|
||||
public int turnNumber;
|
||||
|
||||
/// <summary>
|
||||
/// Constructor for creating person data
|
||||
/// </summary>
|
||||
public PersonData(string name, string target, Transform transform, int turn = 0)
|
||||
{
|
||||
personName = name;
|
||||
targetName = target;
|
||||
personTransform = transform;
|
||||
turnNumber = turn;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Default constructor for serialization
|
||||
/// </summary>
|
||||
public PersonData()
|
||||
{
|
||||
personName = "Unknown";
|
||||
targetName = "Unknown";
|
||||
personTransform = null;
|
||||
turnNumber = 0;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return $"Person: {personName}, Target: {targetName}, Turn: {turnNumber}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b9a03de5cfa64dadaf6c53b8f3935d3e
|
||||
timeCreated: 1764851235
|
||||
Reference in New Issue
Block a user