Example #1
0
 public void ArtificalExit()
 {
     if (Application.isEditor && record && demoStore != null)
     {
         demoStore.Close();
     }
 }
 /// <summary>
 /// Closes Demonstration store.
 /// </summary>
 private void OnApplicationQuit()
 {
     if (Application.isEditor && record)
     {
         demoStore.Close();
     }
 }
 /// <summary>
 /// Closes Demonstration store.
 /// </summary>
 private void OnApplicationQuit()
 {
     if (Application.isEditor && record && m_DemoStore != null)
     {
         m_DemoStore.Close();
     }
 }
 public void Close()
 {
     if (m_DemoStore != null)
     {
         m_DemoStore.Close();
         m_DemoStore = null;
     }
 }
        /// <summary>
        /// Close the DemonstrationStore and remove it from the Agent.
        /// Has no effect if the DemonstrationStore is already closed (or wasn't opened)
        /// </summary>
        public void Close()
        {
            if (m_DemoStore != null)
            {
                RemoveDemonstrationStoreFromAgent(m_DemoStore);

                m_DemoStore.Close();
                m_DemoStore = null;
            }
        }