Пример #1
0
 void GetJGEvent(UEvent e)
 {
     if (e.eventParams.ToString() == MOVE_DB_ZU)
     {
         _theTime.TimesAdd(1, CallBack2);
         //_theTime.ContinuouslyTimesAdd(8 , 1, CallBack);
     }
 }
Пример #2
0
    void GetStarting()
    {
        IsPHStart = false;
        HitKuai.SetActive(true);
        TheLight.gameObject.SetActive(true);
        if (huoyan.isStopped)
        {
            huoyan.Play();
            huoyan.GetComponent <BoxCollider2D>().enabled = true;
            sounds.Play();
        }

        IsStop = false;
        //计时持续时间
        _TheTimer.TimesAdd(penfashijian, CallBackHuoYanCX);
    }
Пример #3
0
 private void OnEnable()
 {
     HitFK.SetActive(true);
     ZhuTX.gameObject.SetActive(true);
     if (!_jnDate)
     {
         _jnDate = GetComponent <JN_Date>();
     }
     if (!_theTime)
     {
         _theTime = GetComponent <TheTimer>();
     }
     _theTime.TimesAdd(_jnDate.TXDisTime, DisTX);
     //print("-----------------------> zhutexiao  延迟消失的时间  ");
 }