Esempio n. 1
0
        public float GetAnimationLength(string animName, float delValue = 0.1f)
        {
            if (animData == null)
            {
                return(delValue);
            }

            Dictionary <string, GpuSkinningAnimClip> dict = animData.getAnimationClipsDict();

            if (dict.ContainsKey(animName))
            {
                return(dict[animName].getDuration());
            }

            return(delValue);
        }
Esempio n. 2
0
 // init
 public void Initial(GpuSkinningAnimData data)
 {
     animData      = data;
     animClipsDict = animData.getAnimationClipsDict();
 }