public void ClearDatabase()
 {
     ListCharacteristicsStory.Clear();
     ListCharacteristicsStory.Add(new CharacteristicsStory());
     CurrentScriptableObjectsCS = ListCharacteristicsStory[0];
     currentIndex = 0;
 }
 public void AddElementToList()
 {
     if (ListCharacteristicsStory == null)
     {
         ListCharacteristicsStory = new List <CharacteristicsStory>();
     }
     CurrentScriptableObjectsCS = new CharacteristicsStory();
     ListCharacteristicsStory.Add(CurrentScriptableObjectsCS);
     currentIndex = ListCharacteristicsStory.Count - 1;
 }
 public void RemoveCurrentElement()
 {
     if (currentIndex > 0)
     {
         CurrentScriptableObjectsCS = ListCharacteristicsStory[--currentIndex];
         ListCharacteristicsStory.RemoveAt(++currentIndex);
     }
     else
     {
         ListCharacteristicsStory.Clear();
         CurrentScriptableObjectsCS = null;
     }
 }
 public CharacteristicsStory GetNextValue()
 {
     if (currentIndex < ListCharacteristicsStory.Count)
     {
         currentIndex++;
     }
     CountList = ListCharacteristicsStory.Count;
     if (currentIndex == CountList)
     {
         currentIndex = 0;
     }
     CurrentScriptableObjectsCS = this[currentIndex];
     return(CurrentScriptableObjectsCS);
 }
 public CharacteristicsStory GetPrevValue()
 {
     if (currentIndex > 0)
     {
         currentIndex--;
     }
     CurrentScriptableObjectsCS = this[currentIndex];
     CountList = ListCharacteristicsStory.Count;
     if (currentIndex == 0)
     {
         currentIndex = CountList;
     }
     return(CurrentScriptableObjectsCS);
 }