Esempio n. 1
0
        public static CozyAnimate Create(CozyAnimation animation)
        {
            var a = new CozyAnimate();

            a.InitWithAnimation(animation);
            return(a);
        }
Esempio n. 2
0
        public static CozyAnimation Create(List<CozyAnimationFrame> frameList, float delayPreUnit = 0.0f, uint loops = 1)
        {
            var animation = new CozyAnimation();
            animation.InitWithAnimationFrames(frameList, delayPreUnit, loops);

            return animation;
        }
Esempio n. 3
0
        public static CozyAnimation Create()
        {
            var animation = new CozyAnimation();

            animation.Init();
            return(animation);
        }
Esempio n. 4
0
        public object Clone()
        {
            var a = new CozyAnimation();

            a.InitWithAnimationFrames(_Frames, DelayPerUnit, Loops);
            a.RestoreOriginalFrame = RestoreOriginalFrame;
            return(a);
        }
Esempio n. 5
0
        public static CozyAnimation Create(List <CozyAnimationFrame> frameList, float delayPreUnit = 0.0f, uint loops = 1)
        {
            var animation = new CozyAnimation();

            animation.InitWithAnimationFrames(frameList, delayPreUnit, loops);

            return(animation);
        }
Esempio n. 6
0
        public bool InitWithAnimation(CozyAnimation animation)
        {
            float signleDuration = animation.Duration;
            base.InitWithDuraction(signleDuration * animation.Loops);
            NextFrame = 0;
            Animaction = animation;
            OrigFrame = null;
            ExecutedLoops = 0;
            float accumUnitOfTime = 0;
            float newUnitOfTimeValue = signleDuration / animation.TotalDelayUnits;

            var frames = animation.Frames;
            foreach(var obj in frames)
            {
                float value = (accumUnitOfTime * newUnitOfTimeValue) / signleDuration;
                accumUnitOfTime += obj.DelayUnits;
                SplitTimes.Add(value);
            }

            return true;
        }
Esempio n. 7
0
        public bool InitWithAnimation(CozyAnimation animation)
        {
            float signleDuration = animation.Duration;

            base.InitWithDuraction(signleDuration * animation.Loops);
            NextFrame     = 0;
            Animaction    = animation;
            OrigFrame     = null;
            ExecutedLoops = 0;
            float accumUnitOfTime    = 0;
            float newUnitOfTimeValue = signleDuration / animation.TotalDelayUnits;

            var frames = animation.Frames;

            foreach (var obj in frames)
            {
                float value = (accumUnitOfTime * newUnitOfTimeValue) / signleDuration;
                accumUnitOfTime += obj.DelayUnits;
                SplitTimes.Add(value);
            }

            return(true);
        }
Esempio n. 8
0
 public object Clone()
 {
     var a = new CozyAnimation();
     a.InitWithAnimationFrames(_Frames, DelayPerUnit, Loops);
     a.RestoreOriginalFrame = RestoreOriginalFrame;
     return a;
 }
Esempio n. 9
0
 public static CozyAnimation Create()
 {
     var animation = new CozyAnimation();
     animation.Init();
     return animation;
 }
Esempio n. 10
0
 public static CozyAnimate Create(CozyAnimation animation)
 {
     var a = new CozyAnimate();
     a.InitWithAnimation(animation);
     return a;
 }