/// <summary> /// Attaches an Image to the frame animation /// </summary> /// <param name="newImage"></param> /// <returns></returns> public AnimationUnitFrame Attach(Image newImage) { AnimationUnitFrame newUnit = this.BaseAttach(0u) as AnimationUnitFrame; newUnit.SetImage(newImage); this.PointToStartingAnimationUnit(); return(newUnit); }
/// <summary> /// Attaches an Image to the frame animation /// </summary> /// <param name="imageName"></param> /// <returns></returns> public AnimationUnitFrame Attach(Image.Name imageName) { Image newImage = ImageManager.Self.Find(imageName); AnimationUnitFrame newUnit = this.BaseAttach(0u) as AnimationUnitFrame; newUnit.SetImage(newImage); this.PointToStartingAnimationUnit(); return(newUnit); }