public void EaseOut(float _duration = 1f)
 {
     this.state               = BattleMsgState.EaseOut;
     this.tweenAlpha.from     = 1f;
     this.tweenAlpha.to       = 0.002f;
     this.tweenAlpha.duration = _duration;
     this.tweenAlpha.ResetToBeginning();
     this.tweenAlpha.PlayForward();
 }
 private void Awake()
 {
     this.selfWidget = base.transform.GetComponent <UIWidget>();
     this.tweenPos   = base.transform.GetComponent <TweenPosition>();
     this.tweenAlpha = base.transform.GetComponent <TweenAlpha>();
     this.state      = BattleMsgState.Free;
     for (int i = 0; i < this.assist.Count; i++)
     {
         this.assist[i].AssignBorder();
     }
     this.attacker.AssignBorder();
     this.victim.AssignBorder();
     base.transform.GetComponent <UIPanel>().depth = Singleton <HUDModuleManager> .Instance.GetDepth(255);
 }
 public void EaseIn(float _duration = 1f)
 {
     this.state             = BattleMsgState.EaseIn;
     this.tweenPos.from     = this.defaultPos + new Vector3((float)((!this.isRightSiderTip) ? 150 : -150), 0f, 0f);
     this.tweenPos.to       = this.defaultPos;
     this.tweenPos.duration = _duration;
     this.tweenAlpha.from   = 0.002f;
     this.tweenAlpha.to     = 1f;
     this.tweenPos.duration = _duration;
     this.tweenPos.ResetToBeginning();
     this.tweenAlpha.ResetToBeginning();
     this.tweenPos.PlayForward();
     this.tweenAlpha.PlayForward();
     this.currentPos = this.defaultPos;
 }