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