Exemple #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = PackRules?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (FrontImage != null ? FrontImage.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (BackImage != null ? BackImage.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (BackImage4K != null ? BackImage4K.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (HighlightImage != null ? HighlightImage.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (HighlightImage4K != null ? HighlightImage4K.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (FrontImage4K != null ? FrontImage4K.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (StackGroup?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ InventorySortPriority;
         hashCode = (hashCode * 397) ^ (DisplayInfo != null ? DisplayInfo.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (MarketplaceProductId?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (ProductId?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
 // Use this for initialization
 public void UpdateHightlightImagePosition(HighlightImage highlightImage, GameObject destination)
 {
     highlightImage.MoveAndShowInNewButton(destination);
 }
 public void HideHightlight(HighlightImage highlightImage)
 {
     highlightImage.Hide();
 }