Unity-ECS-ZombieSimulator icon indicating copy to clipboard operation
Unity-ECS-ZombieSimulator copied to clipboard

fix native collection has not been disposed error

Open alexnown opened this issue 6 years ago • 1 comments

Hello, can i try optimize performance and contribute to this project?

alexnown avatar Apr 29 '18 14:04 alexnown

If we are about disposing arrays, let's dispose NativeArrays in HumanNavigationSystem, too

protected override void OnDestroyManager()
{
    base.OnDestroyManager();
    randomFloats.Dispose();
    randomFloats2.Dispose();
}

Prastiwar avatar May 04 '18 18:05 Prastiwar