public void SetList(SOLDIER_INFO[] _solArray)
 {
     this.Hide();
     this.cardOpen = SolRecruitSuccess_RenewalDlg.eCardOpen.Eleven;
     this.solArray = _solArray;
     this.EffectLoad("fx_direct_hire_renewal", new PostProcPerItem(this.SolRecruitSuccess), null);
     this.EffectLoad("card_pick", new PostProcPerItem(this.SpecialCardLoad), null);
 }
 public void SetList(SOLDIER_INFO _solInfo, int _recruitType)
 {
     this.recruitType = _recruitType;
     this.Hide();
     this.solArray    = new SOLDIER_INFO[1];
     this.solArray[0] = _solInfo;
     this.EffectLoad("fx_direct_hire_renewal_one", new PostProcPerItem(this.SolRecruitSuccess), null);
     this.cardOpen = SolRecruitSuccess_RenewalDlg.eCardOpen.ONE;
 }
 private void UpdateName()
 {
     if (this.isUpdateName)
     {
         return;
     }
     SolRecruitSuccess_RenewalDlg.eCardOpen eCardOpen = this.cardOpen;
     if (eCardOpen != SolRecruitSuccess_RenewalDlg.eCardOpen.ONE)
     {
         if (eCardOpen == SolRecruitSuccess_RenewalDlg.eCardOpen.Eleven)
         {
             if (this.specialCardAnimation.gameObject.activeInHierarchy && !this.specialCardAnimation.isPlaying)
             {
                 if (this.specialCardName == null)
                 {
                     return;
                 }
                 this.lb_name.SetText(this.solSettingList[this.nowSpecialIndex].name);
                 Vector3 position = this.specialCardName.transform.position;
                 position.Set(position.x - this.lb_name.width / 2f, position.y + this.lb_name.height / 2f, position.z);
                 this.lb_name.gameObject.transform.position = position;
                 this.lb_name.Visible = true;
                 this.isUpdateName    = true;
             }
         }
     }
     else if (this.baseAnimation[this.baseAnimation.clip.name].time >= 130f / this.baseAnimation.clip.frameRate)
     {
         if (this.oneCardName == null)
         {
             return;
         }
         this.lb_name.SetText(this.solSettingList[0].name);
         Vector3 position2 = this.oneCardName.transform.position;
         position2.Set(position2.x - this.lb_name.width / 2f, position2.y + this.lb_name.height / 2f, position2.z);
         this.lb_name.gameObject.transform.position = position2;
         this.lb_name.Visible = true;
         this.isUpdateName    = true;
     }
 }
    private void UpdateGlow()
    {
        SolRecruitSuccess_RenewalDlg.eCardOpen eCardOpen = this.cardOpen;
        if (eCardOpen != SolRecruitSuccess_RenewalDlg.eCardOpen.ONE)
        {
            if (eCardOpen == SolRecruitSuccess_RenewalDlg.eCardOpen.Eleven)
            {
                if (!this.isUpdateGlow && this.baseAnimation[this.baseAnimation.clip.name].time >= 90f / this.baseAnimation.clip.frameRate)
                {
                    for (int i = 0; i < this.solSettingList.Count; i++)
                    {
                        switch (this.solSettingList[i].cardType)
                        {
                        case SolRecruitSuccess_RenewalDlg.eCardType.HIGHSESSION:
                            if (!this.solSettingList[i].SettingGlow("fx_hearts_card_ui"))
                            {
                                return;
                            }
                            break;

                        case SolRecruitSuccess_RenewalDlg.eCardType.LEGEND:
                            if (!this.solSettingList[i].SettingGlow("fx_legend_card_ui"))
                            {
                                return;
                            }
                            break;

                        case SolRecruitSuccess_RenewalDlg.eCardType.MYTH:
                            if (!this.solSettingList[i].SettingGlow("fx_myth_card_ui"))
                            {
                                return;
                            }
                            break;
                        }
                    }
                    this.isUpdateGlow = true;
                }
            }
        }
        else if (!this.isUpdateGlow && this.baseAnimation[this.baseAnimation.clip.name].time >= 84f / this.baseAnimation.clip.frameRate)
        {
            switch (this.solSettingList[0].cardType)
            {
            case SolRecruitSuccess_RenewalDlg.eCardType.HIGHSESSION:
                if (!this.solSettingList[0].SettingGlow("fx_hearts_card_ui"))
                {
                    return;
                }
                break;

            case SolRecruitSuccess_RenewalDlg.eCardType.LEGEND:
                if (!this.solSettingList[0].SettingGlow("fx_legend_card_ui"))
                {
                    return;
                }
                break;

            case SolRecruitSuccess_RenewalDlg.eCardType.MYTH:
                if (!this.solSettingList[0].SettingGlow("fx_myth_card_ui"))
                {
                    return;
                }
                break;
            }
            this.isUpdateGlow = true;
        }
    }