Is there a chance that I could covert those ugly Phases (Phase1, Phase2, …) into some collection?
public class RotatorComponent : ComponentDataWrapper<Rotator>
{
}
[Serializable]
public struct Rotator : IComponentData
{
public Phase Phase1;
public Phase Phase2;
public Phase Phase3;
public Phase Phase4;
}
[Serializable]
public struct Phase
{
public float Length;
public float StartValue;
public float EndValue;
}