public override void Init() { base.Init(); this.Text = this.transform.Find("Anchor/Text").GetComponent <UILabel>(); this.ClickArea = this.transform.Find("Anchor/ClickArea"); this.time_out = this.transform.GetComponent <TimeoutController>(); if (this.time_out == null) { this.time_out = this.gameObject.AddComponent <TimeoutController>(); } }
public override void Init() { base.Init(); this.Text = this.transform.Find("Anchor/Text").GetComponent <UILabel>(); this.TweenAnim = this.transform.GetComponent <TweenAlpha>(); this.time_out = this.transform.GetComponent <TimeoutController>(); if (this.time_out == null) { this.time_out = this.gameObject.AddComponent <TimeoutController>(); } this.TweenAnim.ResetToBeginning(); }
public void ShowViewSetText(string text, float time = 1f) { this.text_str = text; CtrlManager.OpenWindow(WindowID.TipView, null); if (this.time_out == null) { this.time_out = this.transform.GetComponent <TimeoutController>(); } if (this.time_out == null) { this.time_out = this.gameObject.AddComponent <TimeoutController>(); } this.SetTime(time); }