示例#1
0
        public void EndTips()
        {
            enabled = false;
            ATips tip = _target ? _target : ATips.fallback;

            tip.HideTips();
        }
示例#2
0
        public void StartTips()
        {
            enabled = true;
            ATips tip = _target ? _target : ATips.fallback;

            tip.ShowTips(_content);
        }
示例#3
0
        protected override void Awake()
        {
            base.Awake();

            _tips = GetComponentInParent <ATips>();
            Assert.IsNotNull(_tips);

            _eRealLoc = ELocation.END;
        }
示例#4
0
        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();
        }
示例#5
0
        void Update()
        {
            ATips tip = _target ? _target : ATips.fallback;

            tip.ShowTips(_content);
        }