using vnxbqy.UI; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using UnityEngine; using UnityEngine.UI; class PetHorseAwakingWin : ILWindow { CyclicScroll cyclicScroll; Transform container_pet; Transform container_horse; RawImage raw_model; Text txt_name; Text txt_level; Slider expSlider; Text txt_exp; Transform container_now; Transform container_line; Transform container_next; Button btn_awaking; int cacheSelectId; int cacheSkinIndex; List scrollItems; List skinBehaviours; List propertysNow; List propertysNext; PetHorseAwakingModel model { get { return PetHorseAwakingModel.Instance; } } protected override void BindController() { base.BindController(); this.cyclicScroll = this.transform.FindComponentEx("Container/Container_List/Scroller"); scrollItems = new List(); for (int i = 1; i <= 7; i++) { var scrollItem = new PetHorseAwakingBehaviour(); scrollItem.Bind(this.transform.Find("Container/Container_List/Scroller/Content/" + i)); scrollItems.Add(scrollItem); } skinBehaviours = new List(); for (int i = 1; i <= 5; i++) { var skinBehaviour = new PetHorseAwakingSkinBehaviour(); skinBehaviour.Bind(this.transform.Find("Container/Container_Detail/Container_Skins/" + i)); this.skinBehaviours.Add(skinBehaviour); } this.container_pet = this.transform.Find("Container/Container_Detail/Container_Pet"); this.container_horse = this.transform.Find("Container/Container_Detail/Container_Horse"); this.raw_model = this.transform.FindComponentEx("Container/Container_Detail/Raw_Model"); this.txt_name = this.transform.FindComponentEx("Container/Container_Detail/Container_Progress/Txt_Name"); this.txt_level = this.transform.FindComponentEx("Container/Container_Detail/Container_Progress/Txt_Level"); this.expSlider = this.transform.FindComponentEx("Container/Container_Detail/Container_Progress/ExpSlider"); this.txt_exp = this.transform.FindComponentEx("Container/Container_Detail/Container_Progress/ExpSlider/ExpNum"); this.container_now = this.transform.Find("Container/Container_Detail/Container_Property/Layout/Container_Now"); this.container_line = this.transform.Find("Container/Container_Detail/Container_Property/Layout/Container_Line"); this.container_next = this.transform.Find("Container/Container_Detail/Container_Property/Layout/Container_Next"); this.propertysNow = new List(); this.propertysNext = new List(); for (int i = 1; i <= 4; i++) { var now = this.transform.FindComponentEx("Container/Container_Detail/Container_Property/Layout/Container_Now/" + i); this.propertysNow.Add(now); var next = this.transform.FindComponentEx("Container/Container_Detail/Container_Property/Layout/Container_Next/" + i); this.propertysNext.Add(next); } this.btn_awaking = this.transform.FindComponentEx