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

        InfoSaver.TakeScreenShot();
        imageNumber++;
        if (CurrentIndex == 0)
        {
            CurrentIndex = 1;
            InfoSaver.GetGalleryTextureByID(mainTexure, currentIndex);
        }
    }