public override void Init() { base.Init(); this.m_LoadController = this.gameObject.GetComponent <LoadController>(); if (this.m_LoadController == null) { this.m_LoadController = this.gameObject.AddComponent <LoadController>(); } this.cenHelper = this.transform.Find("Anchor/Container").GetComponent <UICenterHelper>(); this.InitValue(); }
public override void Init() { base.Init(); this.m_LoadController = this.gameObject.GetComponent <LoadController>(); if (this.m_LoadController == null) { this.m_LoadController = this.gameObject.AddComponent <LoadController>(); } this.txtLabel = this.transform.Find("Anchor/Text").GetComponent <UILabel>(); this._bgPic = this.transform.Find("Anchor/Background").GetComponent <UISprite>(); this._loadBlueBg = this.transform.Find("Anchor/Bluebg").GetComponent <UISprite>(); this.InitValue(); }
public override void Destroy() { this.m_LoadController = null; base.Destroy(); }