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 static int GetPreviousUnlockedImage(ImageGroup group, ImageUnlockInfo unlockInfo, int start) { for (int i = start - 1; i >= 0; --i) { if (unlockInfo.Contains(Utils.ConvertPathSeparator(group.entries[i].resourcePath))) { return(i); } } return(-1); }
public static int GetNextUnlockedImage(ImageGroup group, ImageUnlockInfo unlockInfo, int start) { for (int i = start + 1; i < group.entries.Count; ++i) { if (unlockInfo.Contains(Utils.ConvertPathSeparator(group.entries[i].resourcePath))) { return(i); } } return(-1); }
private void ShowGroup(ImageGroup group, ImageUnlockInfo unlockInfo) { imageViewer.Show(group, unlockInfo); }
public static int GetUnlockedImageCount(ImageGroup group, ImageUnlockInfo unlockInfo) { return(group.entries.Count(entry => unlockInfo.Contains(Utils.ConvertPathSeparator(entry.resourcePath)))); }