protected virtual void Dispose(bool disposing) { if (!disposing) { return; } m_orca.DisposeAll(); m_agents.Clear(true); m_staticObstacles.Clear(true); m_dynamicObstacles.Clear(true); m_raycasts.Clear(true); }
private void OnApplicationQuit() { //Make sure to clean-up the jobs simulation.DisposeAll(); }