//go to next item in the list public void Next() { if (itemList.Count > currentIndex + 1) { currentIndex++; sr.sprite = itemList[currentIndex]; InputStorage.InsertIntoCharList(typeIndex, currentIndex); Debug.Log(InputStorage.ReadFromCharList(typeIndex)); } }
//go to previous item in the list public void Previous() { if (currentIndex > 0) { currentIndex--; sr.sprite = itemList[currentIndex]; InputStorage.InsertIntoCharList(typeIndex, currentIndex); Debug.Log(InputStorage.ReadFromCharList(typeIndex)); } }