using UnityEngine;
using System.Collections;

namespace mgaia.tk2d
{
    /// <summary>
    /// Extensões para o objeto tk2dSpriteAnimationClip
    /// </summary>
    public static class Tk2dSpriteAnimationClipExtensions
    {
        /// <summary>
        /// Retorna o tempo total da animação
        /// </summary>
        /// <owner>Victor</owner>
        public static float GetTotalTime(this tk2dSpriteAnimationClip clip)
        {
            return clip.frames.Length * (1 / clip.fps);
        }
    }
}