diff --git a/EntitiesSamples/Assets/Miscellaneous/Splines/SnakeSettingsAuthoring.cs b/EntitiesSamples/Assets/Miscellaneous/Splines/SnakeSettingsAuthoring.cs index a6c5fed36..6411028a8 100644 --- a/EntitiesSamples/Assets/Miscellaneous/Splines/SnakeSettingsAuthoring.cs +++ b/EntitiesSamples/Assets/Miscellaneous/Splines/SnakeSettingsAuthoring.cs @@ -7,10 +7,10 @@ namespace Miscellaneous.Splines public class SnakeSettingsAuthoring : MonoBehaviour { public GameObject Prefab; - public int Length; - public int Count; - public float Speed; - public float Spacing; + public int NumPartsPerSnake; + public int NumSnakes; + public float Speed; + public float Spacing; class Baker : Baker { @@ -19,11 +19,11 @@ public override void Bake(SnakeSettingsAuthoring authoring) var entity = GetEntity(TransformUsageFlags.None); AddComponent(entity, new SnakeSettings { - Prefab = GetEntity(authoring.Prefab, TransformUsageFlags.Dynamic), - NumPartsPerSnake = authoring.Length, - NumSnakes = authoring.Count, - Speed = authoring.Speed, - Spacing = authoring.Spacing + Prefab = GetEntity(authoring.Prefab, TransformUsageFlags.Dynamic), + NumPartsPerSnake = authoring.NumPartsPerSnake, + NumSnakes = authoring.NumSnakes, + Speed = authoring.Speed, + Spacing = authoring.Spacing }); } }