Files
Project-M/Assets/_Project/Scripts/Simulation/Spawning/PlayerSpawner.cs
T
2026-05-31 14:27:52 -07:00

16 lines
453 B
C#

using Unity.Entities;
using Unity.Mathematics;
namespace ProjectM.Simulation
{
/// <summary>
/// Singleton baked into the gameplay subscene, holding the baked player ghost prefab entity so
/// the server spawn system can instantiate it on connect. Mirrors the netcode CubeSpawner sample.
/// </summary>
public struct PlayerSpawner : IComponentData
{
public Entity PlayerPrefab;
public float3 SpawnPoint;
}
}