Beispiel #1
0
 public void TryPlayFade(AnimationClip clip)
 {
     if (AnimancerComponent.IsPlaying(clip))
     {
         return;
     }
     AnimancerComponent.Play(clip, 0.25f);
 }
Beispiel #2
0
    public void TryPlayFade(AnimationClip clip)
    {
        var state = AnimancerComponent.States.GetOrCreate(clip);

        state.Speed = Speed;
        if (AnimancerComponent.IsPlaying(clip))
        {
            return;
        }
        AnimancerComponent.Play(state, 0.25f);
    }