/// <summary>
        /// Add a tile to this animation frames
        /// </summary>
        /// <param name="tileID">Tile's ID</param>
        /// <param name="delay">Duration of this tile frame</param>
        public void AddTileFrame(int tileID, float delay)
        {
            TileFrame tf = new TileFrame(tileID, delay);
            if (TileFrames == null)
                TileFrames = new List<TileFrame>();

            TileFrames.Add(tf);
        }
Beispiel #2
0
        /// <summary>
        /// Add a tile to this animation frames
        /// </summary>
        /// <param name="tileID">Tile's ID</param>
        /// <param name="delay">Duration of this tile frame</param>
        public void AddTileFrame(int tileID, float delay)
        {
            TileFrame tf = new TileFrame(tileID, delay);

            if (TileFrames == null)
            {
                TileFrames = new List <TileFrame>();
            }

            TileFrames.Add(tf);
        }