Ejemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (_time > _tipShowTime && isTipVisible() == false)
     {
         setTipVisible(true);
     }
     _time += Time.deltaTime;
     if (_time > 15.0f)
     {
         AutoHideMsgBox.getInstance().show(RG_Utils.getLanguageString("XXX"));
         hide();
     }
 }
Ejemplo n.º 2
0
        void Update()
        {
            if (_time > _tipShowTime && isTipVisible() == false)
            {
                setTipVisible(true);
            }
            _time += Time.deltaTime;
            if (_time > 50000.0f)
            {
                if (AutoHideMsgBox.getInstance() != null)
                {
                    AutoHideMsgBox.getInstance().show(RG_Utils.getLanguageString("CodeItem143"));
                }
                hide();
            }

            _pointTime += Time.deltaTime;
            if (_pointTime > _nextPointTime)
            {
                _pointTime = 0;
                _curPointId++;
                if (_curPointId >= 12)
                {
                    _curPointId = 0;
                }
            }

            _textTime += Time.deltaTime;
            if (_textTime > _nextTextTime)
            {
                _textTime = 0;
                _tp2[_curTextId].ResetToBeginning();
                _tp2[_curTextId].PlayForward();
                _tp1[_curTextId].ResetToBeginning();
                _tp1[_curTextId].PlayForward();


                _curTextId++;
                if (_curTextId >= 6)
                {
                    _curTextId = 0;
                }
            }
        }
Ejemplo n.º 3
0
 void Awake()
 {
     _instance = this;
     gameObject.SetActive(false);
 }