public static void AddAnimatorData(string name, AnimatorData animatorData) { if (ANIMATORS.ContainsKey(name)) { throw new Exception("AnimatorData with name '" + name + "' already exists!"); } ANIMATORS[name] = animatorData; }
public Animator(AnimatorData data) { this.data = data; }