示例#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);
 }
示例#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;
                    }
                }
            }
        }