Пример #1
0
 public void Play(AnimationSetAnim animation)
 {
     player.anim = animation;
     player.ignoreTimeScaling = animation.ignoreTimeScale;
     player.looping           = animation.looping;
     player.Play();
 }
Пример #2
0
    public void Play(string name)
    {
        AnimationSetAnim animation = animDictionary[name];

        player.anim = animation;
        player.ignoreTimeScaling = animation.ignoreTimeScale;
        player.looping           = animation.looping;
        player.Play();
    }