public void EndTips() { enabled = false; ATips tip = _target ? _target : ATips.fallback; tip.HideTips(); }
public void StartTips() { enabled = true; ATips tip = _target ? _target : ATips.fallback; tip.ShowTips(_content); }
protected override void Awake() { base.Awake(); _tips = GetComponentInParent <ATips>(); Assert.IsNotNull(_tips); _eRealLoc = ELocation.END; }
void Awake() { Assert.IsNotNull(_lblText); Assert.IsNotNull(_horzGroup); Assert.IsNotNull(_rectRoot); Assert.IsNotNull(_rectBackground); if (_asFallback) { if (fallback != this && fallback) { Debug.LogWarning("ATips.Awake: multiple ATips is marked as fallback", this); } else { _fallback = this; } } _locator = this.GetComponentInChildren <ATipsLocator>(); Assert.IsNotNull(_locator); HideTips(); }
void Update() { ATips tip = _target ? _target : ATips.fallback; tip.ShowTips(_content); }