public override void Init() { base.Init(); this.summonerItem = Resources.Load <SummonerSkillItem>("Prefab/UI/Summoner/SummonerSkillItem"); this.P_Grid = this.transform.Find("Panel/Grid").GetComponent <UIGrid>(); this.P_ScrollView = this.transform.Find("Panel").GetComponent <UIScrollView>(); this.P_Bg = this.transform.Find("Bg2"); UIEventListener.Get(this.P_Bg.gameObject).onClick = new UIEventListener.VoidDelegate(this.ClickBackBtn); }
public void Init() { this.summonerItem = Resources.Load <SummonerSkillItem>("Prefab/UI/Summoner/SummonerSkillItem"); this.L_Panel = this.transform.transform.Find("LeftAnchor/Panel").GetComponent <UIScrollView>(); this.L_Grid = this.transform.transform.Find("LeftAnchor/Panel/Grid").GetComponent <UIGrid>(); this.R_Mask = this.transform.transform.Find("RightAnchor/Mask").GetComponent <UISprite>(); this.R_Texture = this.transform.transform.Find("RightAnchor/Texture").GetComponent <UITexture>(); this.R_Performance = this.transform.transform.Find("RightAnchor/Performance").GetComponent <UITexture>(); this.R_Name = this.transform.transform.Find("RightAnchor/Name").GetComponent <UILabel>(); this.R_Grade = this.transform.transform.Find("RightAnchor/Grade").GetComponent <UILabel>(); this.R_Introduction = this.transform.transform.Find("RightAnchor/Introduction").GetComponent <UILabel>(); }