mirror of
https://github.com/hanzoai/ProjectTinySamples.git
synced 2026-09-24 00:01:34 +00:00
22 lines
401 B
C#
22 lines
401 B
C#
using Unity.Entities;
|
|
|
|
namespace TinyPhysics
|
|
{
|
|
public enum ElevatorState
|
|
{
|
|
Stopped,
|
|
GoingUp,
|
|
GoingDown
|
|
}
|
|
|
|
[GenerateAuthoringComponent]
|
|
public struct Elevator : IComponentData
|
|
{
|
|
public float loweredPosition;
|
|
public float raisedPosition;
|
|
public float moveSpeed;
|
|
|
|
public ElevatorState ElevatorState { get; set; }
|
|
}
|
|
}
|