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

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

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

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

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

            tip.ShowTips(_content);
        }