예제 #1
0
 private void OnGroupValidationResponse(GroupValidationResponse response)
 {
     groupValidationRequestCount--;
     if (groupValidationRequestCount > 0)
     {
         return;
     }
     CardGroupController.GetInstance.ValidateGroupSequense(response);
     CardGroupController.GetInstance.EnableDropButton(true);
 }
예제 #2
0
        internal void ValidateGroupSequense(GroupValidationResponse response)
        {
            int i = 0;

            //if(selectedObject.Count>0)
            //{
            //    return;
            //}
            foreach (var group in cardGroupGameobject)
            {
                if (!group.activeSelf)
                {
                    continue;
                }

                var group_id        = group.transform.GetSiblingIndex() + 1;
                var groupValidation = response.cardGroup.Find((GroupValidation x) => x.groupId == group_id);
                SetGroupInfoText(group, groupSetText[i], groupValidation.handType, textValidation[i]);
                i++;
            }
        }