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