Пример #1
0
    private void OnTriggerExit(Collider collider)
    {
        if (collider.tag == "Ghost")
        {
            animator.SetBool("blinking", false);

            if (fearRoutine == null)
            {
                return;
            }

            if (fearRoutine != null)
            {
                StopCoroutine(fearRoutine);
            }
            fearRoutine = null;

            healthSystem.DecreaseBPM();
            EventManager.Raise(new PlayerChangeBPMEvent(false));
        }
    }