Beispiel #1
0
        public Animation AppendTrigger(OnAnimationActionTriggeredHandler onAnimationActionTriggered)
        {
            var lastAction = actions.LastOrDefault();
            if (lastAction != default(AnimationAction))
                lastAction.onAnimationTriggered = onAnimationActionTriggered;

            return this;
        }
Beispiel #2
0
        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;
        }
Beispiel #3
0
        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;
        }
Beispiel #4
0
        public Animation AppendTrigger(OnAnimationActionTriggeredHandler onAnimationActionTriggered)
        {
            var lastAction = actions.LastOrDefault();

            if (lastAction != default(AnimationAction))
            {
                lastAction.onAnimationTriggered = onAnimationActionTriggered;
            }

            return(this);
        }