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)); }
public static UInt16 geoAnimGetNumFrames(BTL_DATA btl, String animName) { return((UInt16)GeoAnim.animFrame(btl, animName)); }