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