Example #1
0
        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);
        }
Example #2
0
 private void OnApplicationQuit()
 {
     //Make sure to clean-up the jobs
     simulation.DisposeAll();
 }