using System; using UnityEngine; using KitsuneCafe.ItemSystem; namespace UnityAtoms.KitsuneCafe.Atom.ItemSystem { /// /// IPair of type `<Item>`. Inherits from `IPair<Item>`. /// [Serializable] public struct ItemPair : IPair { public Item Item1 { get => _item1; set => _item1 = value; } public Item Item2 { get => _item2; set => _item2 = value; } [SerializeField] private Item _item1; [SerializeField] private Item _item2; public void Deconstruct(out Item item1, out Item item2) { item1 = Item1; item2 = Item2; } } }