Example #1
0
        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));
        }
Example #2
0
        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));
        }
Example #3
0
        public static LeanState Register(float duration)
        {
            var state = LeanTransition.Spawn(State.Pool);

            return(LeanTransition.Register(state, duration));
        }