Пример #1
0
        private void OnTriggerExit(Collider other)
        {
            // If the triggering transform is not the character or the power is already off, return.
            if (other.transform != m_Character)
            {
                return;
            }

            if (!m_PowerOn)
            {
                return;
            }

            // Fade out the selection slider.
            StartCoroutine(m_SelectionSliderFader.CheckAndFadeOut());
        }