示例#1
0
        IEnumerator CallCops()
        {
            Debug.Log("Cops are being called!");
            yield return(new WaitForSeconds(arrestTimer));

            if (m_Car.CurrentSpeed < 4.0f)
            {
                isDead = true;
                StartCoroutine(m_Car.Death());
                // GetComponent<CarController>().enabled = false;
            }
        }