private void StartTimer() { InitTimerService(); _timer = _timerService.CreatOrRestartTimer(_timerID, 1, false); _timer.AddCompleteListener(HideImage); }
protected void CreateTimer(float time, bool loop = false) { _timer = _timerService.CreatOrRestartTimer(Label.ToString() + ID, time, loop); _timer.AddCompleteListener(() => OnComplete()); }
// 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)); }
private void StartTimer() { _timer = _timerService.CreatOrRestartTimer(TimerId.SKILL_VIEW, 1, false); _timer.AddCompleteListener(HideItems); }