public abstract UITrigger Install(GameObject gameObject, TriggerElement element, IReadOnlyLayoutContext context, IReadOnlyAnimationContext animationContext);
protected override UITrigger Install(GameObject go, OnPointerUpTriggerElement element, IReadOnlyLayoutContext context, IReadOnlyAnimationContext animationContext) { return(go.AddComponent <OnPointerUpPlayAnimation>()); }
protected override UITrigger Install(GameObject go, OnAnimationFinishedTriggerElement element, IReadOnlyLayoutContext context, IReadOnlyAnimationContext animationContext) { var finishTriggerComponent = go.AddComponent <OnAnimationFinishedPlayAnimation>(); var otherAnimation = animationContext.FindAnimation(element.Animation); if (otherAnimation == null) { Debug.LogError("Cannot find animation with key " + element.Animation); } finishTriggerComponent.otherAnimation = otherAnimation; return(finishTriggerComponent); }