/**
  * <summary>Ends the ActionList or ActionListAsset associated with a given ActiveList data container</summary>
  * <param name = "activeList">The ActiveList associated with the ActionList or ActionListAsset to end.</param>
  */
 public void EndList(ActiveList activeList)
 {
     activeList.Reset(false);
     if (activeList.GetConversationOnEnd())
     {
         ResetSkipVars();
         activeList.RunConversation();
     }
 }
        /**
         * <summary>Ends the ActionList or ActionListAsset associated with a given ActiveList data container</summary>
         * <param name = "activeList">The ActiveList associated with the ActionList or ActionListAsset to end.</param>
         */
        public void EndList(ActiveList activeList)
        {
            activeList.Reset(false);

            if (activeList.GetConversationOnEnd())
            {
                ResetSkipVars();
                activeList.RunConversation();
            }
            else
            {
                if (activeList.actionListAsset != null && activeList.actionList.actionListType == ActionListType.PauseGameplay && !activeList.actionList.unfreezePauseMenus && KickStarter.playerMenus.ArePauseMenusOn(null))
                {
                    // Don't affect the gamestate if we want to remain frozen
                    if (KickStarter.stateHandler.gameState != GameState.Cutscene)
                    {
                        ResetSkipVars();
                    }
                    PurgeLists();
                }
                else
                {
                    SetCorrectGameStateEnd();
                }
            }

            /*if (activeList != null && activeList.actionList != null && activeList.actionList.autosaveAfter)
             * {
             *      if (!IsGameplayBlocked ())
             *      {
             *              SaveSystem.SaveAutoSave ();
             *      }
             *      else
             *      {
             *              saveAfterCutscene = true;
             *      }
             * }*/
        }