diff --git a/src/Tests/ECS/Examples/Optimization.cs b/src/Tests/ECS/Examples/Optimization.cs index ec59cdcf..ee977d8d 100644 --- a/src/Tests/ECS/Examples/Optimization.cs +++ b/src/Tests/ECS/Examples/Optimization.cs @@ -146,20 +146,20 @@ public static void EntityBatchOperations() new Scale3(4, 5, 6), new EntityName("test"), Tags.Get()); - Console.WriteLine(entity); // id: 1 "test" [EntityName, Position, Scale3, #MyTag1] + Console.WriteLine(entity); // id: 1 "test" [EntityName, Position, Scale3, #MyTag1] // batch: get operations - var data = entity.Data; // introduced in 3.0.0-preview.7 + var data = entity.Data; // introduced in 3.0.0-preview.7 var pos = data.Get(); var scale = data.Get(); var name = data.Get(); var tags = data.Tags; - Console.WriteLine($"({pos}), ({scale}), ({name})"); // (1, 2, 3), (4, 5, 6), ('test') - Console.WriteLine(tags); // Tags: [#MyTag1] + Console.WriteLine($"({pos}),({scale}),({name})"); // (1, 2, 3), (4, 5, 6), ('test') + Console.WriteLine(tags); // Tags: [#MyTag1] // batch: remove operations - entity.Remove(Tags.Get()); - Console.WriteLine(entity); // id: 1 [] + entity.Remove(Tags.Get()); + Console.WriteLine(entity); // id: 1 [] } /// An EntityBatch should only be used when adding AND removing components / tags to the same entity.