Beispiel #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();
 }
Beispiel #2
0
 public void NextImage()
 {
     index = ImageGalleryController.GetNextUnlockedImage(group, unlockInfo, index);
     if (index >= 0)
     {
         Refresh();
     }
     else
     {
         Hide();
     }
 }
Beispiel #3
0
 private void Awake()
 {
     controller = GetComponentInParent <ImageGalleryController>();
 }