public void Tick()
        {
            if (!_isOutside)
            {
                return;
            }

            _timer -= Time.deltaTime;

            if (_timer <= 0)
            {
                PlayerEscaped?.Invoke();
            }
        }
Esempio n. 2
0
 protected override void OnAction()
 {
     PlayerEscaped?.Invoke();
 }