// Token: 0x0600004A RID: 74 RVA: 0x00005758 File Offset: 0x00003958
        public ePAnimationChain Clone(ePart eeP)
        {
            ePAnimationChain C = new ePAnimationChain();


            foreach (ePAnimation eA in this.AnimationList)
            {
                ePAnimation NeweA = eA.Clone(eeP);
                NeweA.ePAnimationChain1     = this;
                NeweA.Axis.Owner_ePart      = eeP;
                NeweA.ChildRotationGradient = eA.ChildRotationGradient;


                foreach (ePAnimation PeA in NeweA.Parellel_eAs)
                {
                    PeA.ePAnimationChain1 = this;
                    PeA.Axis.Owner_ePart  = eeP;
                }


                C.AnimationList.Add(NeweA);
            }


            C.Loopable          = this.Loopable;
            C.iCurrentAnimation = 0;
            C.CurrentAnimation  = C.AnimationList[0];
            return(C);
        }
Esempio n. 2
0
        // Token: 0x06000206 RID: 518 RVA: 0x0001C38C File Offset: 0x0001A58C
        public static void InitializeAnimations()
        {
            ePart   eeP   = new ePart(new Entity(EntityTypes.Human1));
            Vector3 ddpos = default;

            float[] array = new float[2];
            array[0] = -2f;
            ePAnimation FeA = new ePAnimation(eeP, ddpos, array, false, new float[]
            {
                15f,
                10f
            }, new Axis("L".ToCharArray().First <char>(), false, new ePart(new Entity(EntityTypes.Human1))), 1.05f)
            {
                IsFakeTimer = true
            };
            ePAnimation eA = new ePAnimation(new ePart(new Entity(EntityTypes.Human1)), default, new float[]
        // Token: 0x06000056 RID: 86 RVA: 0x0000621C File Offset: 0x0000441C
        public ePAnimation Clone(ePart eeP)
        {
            bool        isFakeTimer = this.IsFakeTimer;
            ePAnimation o;

            if (isFakeTimer)
            {
                o = new ePAnimation(new ePart(new Entity(EntityTypes.WayPoint)), this.DPos, this.DAngleLst.ToArray(), this.Looping, this.TimeLst.ToArray(), this.Axis);
            }
            else
            {
                o = new ePAnimation(eeP, this.DPos, this.DAngleLst.ToArray(), this.Looping, this.TimeLst.ToArray(), this.Axis);
            }
            foreach (ePAnimation Ani in this.Parellel_eAs)
            {
                ePAnimation ClA = Ani.Clone(eeP);
                ClA.ChildRotationGradient = Ani.ChildRotationGradient;
                o.Parellel_eAs.Add(ClA);
            }
            return(o);
        }