Esempio n. 1
0
        /// <summary>
        /// Allows the game component to update itself.
        /// </summary>
        /// <param name="gameTime">Provides a snapshot of timing values.</param>
        public bool UpdateAni(AnimatedTexture aniTx, float elapsed)
        {
            // TODO: Add your update code here
            aniTx.UpdateFrame(elapsed);

            if (aniTx.Frame / (aniTx.framecount - 1) == 1)
            {
                aniTx.Stop();
                return(false);
            }
            return(true);
            //base.Update(gameTime);
        }