From 6d8d13cb36a332b319dfc5327a7b6e2223f0191e Mon Sep 17 00:00:00 2001 From: Dmitry Mitrofanov <19838200+PixeyeHQ@users.noreply.github.com> Date: Sun, 28 Jun 2020 15:52:47 +0200 Subject: [PATCH 1/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2797f4a2..121b53e3 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ ## ⭐ Why Actors ? The framework favors simplicity and doesn't try to "abstract away" Unity workflows bringing first-class support for combining ECS with classic Unity component system. -- Deterministic worflow. +- Deterministic workflow. - ECS with clean syntax and no codegen. - ECS integration with Unity gameobjects via Actor components. - Logic Layers. From d4a7b0a19c125315d90881025c446e250e37a391 Mon Sep 17 00:00:00 2001 From: Mofrison Date: Mon, 29 Jun 2020 22:25:54 +0300 Subject: [PATCH 2/3] deleted the wrong bracket ))) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 121b53e3..47964283 100644 --- a/README.md +++ b/README.md @@ -259,7 +259,7 @@ Obj.Create(Pool.Entities,"Obj Alpaca"); ``` In case you used pool you must provide the pool ID. ```csharp - var transform = Obj.Create((Pool.Entities, "Obj Alpaca"); + var transform = Obj.Create(Pool.Entities, "Obj Alpaca"); transform.gameObject.Release(Pool.Entities); ``` From 9a8bf055362519f32d0567404047a04fdcca5bfb Mon Sep 17 00:00:00 2001 From: Pixeye <19838200+PixeyeHQ@users.noreply.github.com> Date: Fri, 3 Jul 2020 12:57:05 +0200 Subject: [PATCH 3/3] Fix #59 --- Runtime/LibEcs/EntityMeta.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Runtime/LibEcs/EntityMeta.cs b/Runtime/LibEcs/EntityMeta.cs index 9064569b..a2550352 100644 --- a/Runtime/LibEcs/EntityMeta.cs +++ b/Runtime/LibEcs/EntityMeta.cs @@ -57,7 +57,7 @@ public void AddComponent(int type) [MethodImpl(MethodImplOptions.AggressiveInlining)] public void RemoveComponent(int type, int entityID) { - for (var tRemoveIndex = 0; tRemoveIndex < componentsAmount; tRemoveIndex++) + for (var tRemoveIndex = 0; tRemoveIndex <= componentsAmount; tRemoveIndex++) { if (components[tRemoveIndex] == type) { @@ -85,7 +85,7 @@ public void AddGroup(int type) [MethodImpl(MethodImplOptions.AggressiveInlining)] public void RemoveGroup(int type) { - for (var tRemoveIndex = 0; tRemoveIndex < componentsAmount; tRemoveIndex++) + for (var tRemoveIndex = 0; tRemoveIndex <= componentsAmount; tRemoveIndex++) { if (groups[tRemoveIndex] == type) { @@ -100,7 +100,7 @@ public void RemoveGroup(int type) [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool AlreadyInGroup(int groupID) { - for (var gIndex = 0; gIndex < groupsAmount; gIndex++) + for (var gIndex = 0; gIndex <= groupsAmount; gIndex++) { if (groups[gIndex] == groupID) return true; }