コード例 #1
0
        /// <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);
        }
コード例 #2
0
        /// <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);
        }