Inheritance: CCActionInterval
コード例 #1
0
        protected override CCAction reverseImpl()
        {
            List <CCAnimationFrame> oldArray = _animation.frames;
            List <CCAnimationFrame> newArray = new List <CCAnimationFrame> (oldArray.Count);

            var enumerator = oldArray.GetEnumerator();

            while (enumerator.MoveNext())
            {
                var frame = enumerator.Current;
                newArray.Add(frame.copy());
            }
            newArray.Reverse();


            CCAnimation newAnim = new CCAnimation(newArray, _animation.delayPerUnit, _animation.loops);

            newAnim.restoreOriginalFrame = _animation.restoreOriginalFrame;
            CCAnimate animate = new CCAnimate(animation);

            return(animate);
        }
コード例 #2
0
		protected override CCAction copyImpl ()
		{
			CCAnimate animate = new CCAnimate(_animation.copy());
			return animate;
		}
コード例 #3
0
		protected override CCAction reverseImpl ()
		{
			List<CCAnimationFrame> oldArray = _animation.frames;
			List<CCAnimationFrame> newArray = new List<CCAnimationFrame> (oldArray.Count);
			
			var enumerator = oldArray.GetEnumerator();
			while (enumerator.MoveNext()) {
				var frame = enumerator.Current;
				newArray.Add(frame.copy());			
			}
			newArray.Reverse ();
			
			
			CCAnimation newAnim = new CCAnimation (newArray, _animation.delayPerUnit, _animation.loops);
			newAnim.restoreOriginalFrame = _animation.restoreOriginalFrame;
			CCAnimate animate = new CCAnimate(animation);
			return animate;
		}
コード例 #4
0
        protected override CCAction copyImpl()
        {
            CCAnimate animate = new CCAnimate(_animation.copy());

            return(animate);
        }