void OnDestroy() { if (Positions != null) { Positions.Dispose(); } if (Velocities != null) { Velocities.Dispose(); } if (Lifes != null) { Lifes.Dispose(); } if (Constants != null) { Constants.Dispose(); } if (Walls != null) { Walls.Dispose(); } if (VelSimulation != null) { VelSimulation.Dispose(); } if (PosSimulation != null) { PosSimulation.Dispose(); } if (Broadphase != null) { Broadphase.Dispose(); } if (WallSolver != null) { WallSolver.Dispose(); } if (ParticleSolver != null) { ParticleSolver.Dispose(); } if (Combiner != null) { Combiner.Dispose(); } }