public UIAnimationSequence Activate(RectTransform transform, bool value) { var animation = new FunctionCallAnimation(() => transform.gameObject.SetActive(value)); Animations.Add(animation); return this; }
public UIAnimationSequence Call(Action action) { var animation = new FunctionCallAnimation(action); Animations.Add(animation); return this; }