public void Play(AnimationSetAnim animation) { player.anim = animation; player.ignoreTimeScaling = animation.ignoreTimeScale; player.looping = animation.looping; player.Play(); }
public void Play(string name) { AnimationSetAnim animation = animDictionary[name]; player.anim = animation; player.ignoreTimeScaling = animation.ignoreTimeScale; player.looping = animation.looping; player.Play(); }