コード例 #1
0
 //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));
     }
 }
コード例 #2
0
 //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));
     }
 }