Esempio n. 1
0
 protected override void CrossFadeStart()
 {
     HitReaction.HitPointEffector.EffectorLink[] array = this.effectorLinks;
     for (int i = 0; i < array.Length; i++)
     {
         HitReaction.HitPointEffector.EffectorLink effectorLink = array[i];
         effectorLink.CrossFadeStart();
     }
 }
Esempio n. 2
0
            protected override void OnApply(IKSolverFullBodyBiped solver, float weight)
            {
                Vector3 a      = solver.GetRoot().up *base.force.magnitude;
                Vector3 vector = this.offsetInForceDirection.Evaluate(base.timer) * base.force + this.offsetInUpDirection.Evaluate(base.timer) * a;

                vector *= weight;
                HitReaction.HitPointEffector.EffectorLink[] array = this.effectorLinks;
                for (int i = 0; i < array.Length; i++)
                {
                    HitReaction.HitPointEffector.EffectorLink effectorLink = array[i];
                    effectorLink.Apply(solver, vector, base.crossFader);
                }
            }