public void RefreshNotice() { if (Module_Pet.instance.Contains(DataCache.ID)) { mark.SafeSetActive(DataCache.CanFeed() || DataCache.CanEvolve()); } else { mark.SafeSetActive(DataCache.CanNoticeCompond()); } }
private static int CompareHandle(PetInfo a, PetInfo b) { if (a.IsFighting == b.IsFighting) { var owna = modulePet.Contains(a.ID); var ownb = modulePet.Contains(b.ID); if (owna == ownb) { var composeA = a.CanNoticeCompond(); var composeB = b.CanNoticeCompond(); if (composeA == composeB) { return(-a.CPetInfo.quality.CompareTo(b.CPetInfo.quality)); } return(-composeA.CompareTo(composeB)); } return(-owna.CompareTo(ownb)); } return(-a.IsFighting.CompareTo(b.IsFighting)); }