public void NextImage() { if (CurrentIndex == imageNumber) { return; } CurrentIndex++; InfoSaver.GetGalleryTextureByID(mainTexure, CurrentIndex); }
public void LastImage() { if (CurrentIndex <= 1) { return; } CurrentIndex--; InfoSaver.GetGalleryTextureByID(mainTexure, CurrentIndex); }
public IEnumerator AddNewImageByScreenShot() { yield return(new WaitForEndOfFrame()); InfoSaver.TakeScreenShot(); imageNumber++; if (CurrentIndex == 0) { CurrentIndex = 1; InfoSaver.GetGalleryTextureByID(mainTexure, currentIndex); } }