void OnDestroy() { if (_positions != null) { _positions.Dispose(); } if (_lifes != null) { _lifes.Dispose(); } }
void OnDestroy() { if (_positions != null) { _positions.Dispose(); } if (_velocities != null) { _velocities.Dispose(); } if (_lifes != null) { _lifes.Dispose(); } if (_velSimulation != null) { _velSimulation.Dispose(); } if (_posSimulation != null) { _posSimulation.Dispose(); } }