Пример #1
0
        private static void CrossFadeInternal(ref AnimatorControllerPlayable that, int stateNameHash, float transitionDuration)
        {
            float normalizedTime = float.NegativeInfinity;
            int   layer          = -1;

            AnimatorControllerPlayable.CrossFadeInternal(ref that, stateNameHash, transitionDuration, layer, normalizedTime);
        }
Пример #2
0
 public void CrossFade(int stateNameHash, float transitionDuration, [DefaultValue("-1")] int layer, [DefaultValue("float.NegativeInfinity")] float normalizedTime)
 {
     AnimatorControllerPlayable.CrossFadeInternal(ref this, stateNameHash, transitionDuration, layer, normalizedTime);
 }
 public void CrossFade(string stateName, float transitionDuration, [DefaultValue("-1")] int layer, [DefaultValue("float.NegativeInfinity")] float normalizedTime)
 {
     AnimatorControllerPlayable.CrossFadeInternal(ref this.handle, AnimatorControllerPlayable.StringToHash(stateName), transitionDuration, layer, normalizedTime);
 }