Пример #1
0
        private void StartTimer()
        {
            InitTimerService();

            _timer = _timerService.CreatOrRestartTimer(_timerID, 1, false);
            _timer.AddCompleteListener(HideImage);
        }
Пример #2
0
 protected void CreateTimer(float time, bool loop = false)
 {
     _timer = _timerService.CreatOrRestartTimer(Label.ToString() + ID, time, loop);
     _timer.AddCompleteListener(() => OnComplete());
 }
Пример #3
0
 // OnStateEnter is called when a transition starts and the state machine starts to evaluate this state
 override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     Init();
     _timer = _timerService.CreateTimer("IdleSwordAniState", 1, false);
     _timer.AddCompleteListener(() => animator.SetBool(ConstValue.IDLE_SWORD_PARA_NAME, false));
 }
Пример #4
0
 private void StartTimer()
 {
     _timer = _timerService.CreatOrRestartTimer(TimerId.SKILL_VIEW, 1, false);
     _timer.AddCompleteListener(HideItems);
 }