public Animation AppendTrigger(OnAnimationActionTriggeredHandler onAnimationActionTriggered) { var lastAction = actions.LastOrDefault(); if (lastAction != default(AnimationAction)) lastAction.onAnimationTriggered = onAnimationActionTriggered; return this; }
public AnimationAction(float timestepSeconds, Vector2 relativePosition = default(Vector2), float relativeRotation = 0, Vector2 relativeScale = default(Vector2), OnAnimationActionTriggeredHandler onAnimationTriggered = null) { this.relativePosition = relativePosition; this.relativeRotation = relativeRotation; this.relativeScale = relativeScale; this.timestepSeconds = timestepSeconds; this.onAnimationTriggered = onAnimationTriggered; }
public AnimationAction(float timestepSeconds, Vector2 relativePosition = default(Vector2), float relativeRotation = 0, Vector2 relativeScale = default(Vector2), OnAnimationActionTriggeredHandler onAnimationTriggered = null) { this.relativePosition = relativePosition; this.relativeRotation = relativeRotation; this.relativeScale = relativeScale; this.timestepSeconds = timestepSeconds; this.onAnimationTriggered = onAnimationTriggered; }
public Animation AppendTrigger(OnAnimationActionTriggeredHandler onAnimationActionTriggered) { var lastAction = actions.LastOrDefault(); if (lastAction != default(AnimationAction)) { lastAction.onAnimationTriggered = onAnimationActionTriggered; } return(this); }