示例#1
0
        public object CreateSequence(NTweenSequence sequence)
        {
            Sequence hoTweenSequence = new Sequence ();

            foreach (var tween in sequence.GetTweens()) {

                // yuck
                if (tween is SequenceTweenHolder) {
                    var nTween = (SequenceTweenHolder)tween;

                    var tweenParms = SetAttributes (nTween.attribute);

                    tweenParms.Prop (nTween.builder.GetProperty (), nTween.builder.GetTweenValueTo ());

                    var hoTween = HOTween.To (nTween.builder.GetObject (), nTween.builder.GetDuration (), tweenParms);

                    hoTweenSequence.Append (hoTween);
                } else if (tween is SequenceCallBack) {
                    hoTweenSequence.AppendCallback (((SequenceCallBack)tween).Callback.Invoke);
                } else if (tween is SequenceInterval) {
                    hoTweenSequence.AppendInterval (((SequenceInterval)tween).Duration);
                }
            }

            return hoTweenSequence;
        }
示例#2
0
 public object CreateSequence(NTweenSequence sequence)
 {
     throw new System.NotImplementedException ();
 }