Ejemplo n.º 1
0
 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>();
     }
 }
Ejemplo n.º 2
0
 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();
 }
Ejemplo n.º 3
0
 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);
 }