void setupForSubClip(CreaturePackPlayer pack_player, int idx, string anim_name)
 {
     if (composite_clips.ContainsKey(active_name))
     {
         var sublist = composite_clips[active_name];
         pack_player.setActiveAnimation(sublist[idx].name);
         pack_player.setRunTime(sublist[idx].start_frame, "");
     }
 }
Exemple #2
0
 public void InitData()
 {
     if (pack_asset && (pack_player == null))
     {
         var pack_loader = pack_asset.GetCreaturePackLoader();
         pack_player = new CreaturePackPlayer(pack_loader);
         pack_player.setActiveAnimation(active_animation_name);
     }
 }
    public void InitData()
    {
        if (pack_asset && (pack_player == null))
        {
            var pack_loader = pack_asset.GetCreaturePackLoader();
            pack_player = new CreaturePackPlayer(pack_loader);
            pack_player.setActiveAnimation(active_animation_name);
        }

        if (pack_asset != null && pack_player != null)
        {
            if (use_anchor_pts || use_composite_clips || use_skin_swap || use_meta_data)
            {
                pack_asset.LoadMetaData();
                if (pack_asset.composite_player != null)
                {
                    pack_asset.composite_player.setActiveName(composite_anim, true, pack_player);
                }
            }
        }
    }
 public void InitData()
 {
     if(pack_asset)
     {
         var pack_loader = pack_asset.GetCreaturePackLoader();
         pack_player = new CreaturePackPlayer(pack_loader);
         pack_player.setActiveAnimation(active_animation_name);
     }
 }