using UnityEngine; namespace Lean.Transition { public static partial class LeanExtensions { /// This will give you the previously registered transition state. public static LeanState GetTransition(this T target) where T : Component { return LeanTransition.PreviousState; } /// This will give you the previously registered transition state. public static LeanState GetTransition(this GameObject target) { return LeanTransition.PreviousState; } } }