From 5ef7c1229b49b10fc771f0b33c17cadc563937dd Mon Sep 17 00:00:00 2001 From: EIZENHORN91 Date: Fri, 19 May 2023 11:24:18 +0300 Subject: [PATCH] Fixed inconsistent fields naming in editor and authoring script --- .../Splines/SnakeSettingsAuthoring.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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 }); } }