public static LeanState Register(float fillAmount, float duration, LeanEase ease = LeanEase.Smooth) { var state = LeanTransition.Spawn(State.Pool); state.TimeScale = fillAmount; state.Ease = ease; return(LeanTransition.Register(state, duration)); }
public static LeanState Register(UnityEvent action, float duration) { var state = LeanTransition.Spawn(State.Pool); state.Action = null; state.Event = action; return(LeanTransition.Register(state, duration)); }
public static LeanState Register(float duration) { var state = LeanTransition.Spawn(State.Pool); return(LeanTransition.Register(state, duration)); }