|
|
|
|
|
|
[SerializeField] private Sprite _filledPagination = default; |
|
|
|
|
|
|
|
private List<Image> _instantiatedImages = default; |
|
|
|
|
|
|
|
_instantiatedImages = new List<Image>(); |
|
|
|
//_instantiatedImages = new List<Image>();
|
|
|
|
|
|
|
|
if (_instantiatedImages == null) |
|
|
|
_instantiatedImages = new List<Image>(); |
|
|
|
|
|
|
|
//instanciate pagination images from the prefab
|
|
|
|
int maxCount = Mathf.Max(paginationCount, _instantiatedImages.Count); |
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
SetCurrentPagination(selectedPaginationIndex); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
else |
|
|
|
{ |
|
|
|
_instantiatedImages[i].sprite = _emptyPagination; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |