Ejemplo n.º 1
0
 private void DrawSuit()
 {
     if (fashionInfo.Length <= suit_select)
     {
         suit_select = 0;
     }
     FashionSuit.RowData rowData = fashionInfo[suit_select];
     FashionUtil.DrawSuit(go, rowData, (uint)presentid, 1);
     paint.Initial(go, shape);
     bone.Initial(go, shape);
 }
Ejemplo n.º 2
0
        public static void DrawRoleWithPresentID(uint presentid, GameObject go)
        {
            var role = FindRole(presentid);

            if (role != null)
            {
                for (int i = 0; i < _suit.Table.Length; i++)
                {
                    if (_suit.Table[i].id == role.SuitID)
                    {
                        FashionUtil.DrawSuit(go, _suit.Table[i], presentid, 1);
                        break;
                    }
                }
            }
        }
Ejemplo n.º 3
0
        public static void DrawWeapon(GameObject go, RoleShape shape, string dir, XRolePart part, uint presentid, int weapon_index, FashionList.RowData row)
        {
            string    sshape    = shape.ToString().ToLower();
            Transform transf    = go.transform.Find("Player_" + sshape + "_" + TCConst.WEAPON);
            string    shape_dir = "Player_" + sshape;
            string    cname     = "Player_" + sshape + "_" + dir + "_" + TCConst.WEAPON + "_" + presentid + "_" + weapon_index;
            string    asset     = "Assets/BundleRes/FBXRawData/" + shape_dir + "/" + shape_dir + "_" + dir + "/" + cname;

            for (int i = 0; i < part.weapon.Length; i++)
            {
                if (part.weapon[i].presentid == presentid)
                {
                    if (weapon_index == 1)
                    {
                        FashionUtil.DrawPart(transf, asset, part.weapon[i].weapon1, part.weapon[i].sweapon1, row);
                    }
                    else
                    {
                        DrawPart(transf, asset, part.weapon[i].weapon2, part.weapon[i].sweapon2, row);
                    }
                    break;
                }
            }
        }