/* * Cycle the index circularly between 0 and the number of the uma's * **/ private int ApplyVerse(VERSE verse, int _index) { if (verse == VERSE.NEXT) { _index++; } else { _index--; } return(StayInRange(_index)); }
/* Apply to the uma's array a verse of scrolling and return the name * of the asset of the selected uma. * */ public string ChangeUMA(VERSE verse) { currentIndexOfTheSelection = ApplyVerse(verse, currentIndexOfTheSelection); return(UMAGenericHelper.ToggleUmasActivation(createdUmas, currentIndexOfTheSelection).gameObject.name); }