namespace Zinnia.Data.Operation.Cache { using System; using UnityEngine; using UnityEngine.Events; using Zinnia.Extension; [Obsolete("Use `Zinnia.Data.Type.Observer.Vector3ObservableProperty` instead.")] public class Vector3Cache : ValueCache { /// /// Defines the event with the specified . /// [Serializable] public class UnityEvent : UnityEvent { } [Tooltip("The tolerance to consider the current value and the cached value equal.")] [SerializeField] private float equalityTolerance = float.Epsilon; /// /// The tolerance to consider the current value and the cached value equal. /// public float EqualityTolerance { get { return equalityTolerance; } set { equalityTolerance = value; } } /// protected override bool AreEqual(Vector3 a, Vector3 b) { return a.ApproxEquals(b, EqualityTolerance); } } }