Example #1
0
 public void Show(ImageGroup group, ImageUnlockInfo unlockInfo)
 {
     gameObject.SetActive(true);
     this.group      = group;
     this.unlockInfo = unlockInfo;
     index           = ImageGalleryController.GetNextUnlockedImage(group, unlockInfo, -1);
     scale           = 1.0f;
     Refresh();
 }
Example #2
0
 public void NextImage()
 {
     index = ImageGalleryController.GetNextUnlockedImage(group, unlockInfo, index);
     if (index >= 0)
     {
         Refresh();
     }
     else
     {
         Hide();
     }
 }
Example #3
0
 private void Awake()
 {
     controller = GetComponentInParent <ImageGalleryController>();
 }