/// <summary> /// Add a new animation that can be able to be played by name /// </summary> /// <param name="newAnimation"></param> public void AddAnimation(Animate newAnimation) { if (AnimationData.ContainsKey(newAnimation.Name)) { AnimationData[newAnimation.Name] = newAnimation; } else { AnimationData.Add(newAnimation.Name, newAnimation); } }