using UnityEngine; namespace UnityAtoms.BaseAtoms { /// /// Variable of type `Vector2`. Inherits from `EquatableAtomVariable<Vector2, Vector2Pair, Vector2Event, Vector2PairEvent, Vector2Vector2Function>`. /// [EditorIcon("atom-icon-lush")] [CreateAssetMenu(menuName = "Unity Atoms/Variables/Vector2", fileName = "Vector2Variable")] public sealed class Vector2Variable : EquatableAtomVariable { /// /// Multiply variable by value. /// /// Value to multiple by. public void MultiplyBy(float value) => Value *= value; /// /// Multiply variable by Variable value. /// /// Variable with value to multiple by. public void MultiplyBy(AtomBaseVariable variable) => MultiplyBy(variable.Value); /// /// Divide Variable by value. /// /// Value to divide by. public void DivideBy(float value) => Value /= value; /// /// Divide Variable by Variable value. /// /// Variable value to divide by. public void DivideBy(AtomBaseVariable variable) => DivideBy(variable.Value); } }