Example #1
0
    IEnumerator Police()
    {
        yield return(new WaitForSeconds(15f));

        GetComponent <AudioSource>().PlayOneShot(PoliceClip);
        scripttodisplaytext.DiplayText("Oh shit, cops are already here. I need my getaway team");
        StartCoroutine("SpawnGuvs");
        yield return(new WaitForSeconds(2f));

        playeraudio.PlayOneShot(PhoneCall);
        yield return(new WaitForSeconds(7.5f));

        phonecalldone = true;
        scripttodisplaytext.DiplayText("My getaway team will only come if I get 10 Jerseys");
    }