예제 #1
0
        public static UInt16 geoAnimGetNumFrames(BTL_DATA btl)
        {
            Int32     num                  = 0;
            Animation component            = btl.gameObject.GetComponent <Animation>();
            String    currentAnimationName = btl.currentAnimationName;

            if (component[currentAnimationName] != (TrackedReference)null)
            {
                return((UInt16)GeoAnim.animFrame(btl, currentAnimationName));
            }
            return((UInt16)((num <= 0) ? 1 : num));
        }
예제 #2
0
 public static UInt16 geoAnimGetNumFrames(BTL_DATA btl, String animName)
 {
     return((UInt16)GeoAnim.animFrame(btl, animName));
 }