// Update is called once per frame
 void Update()
 {
     if (chamaChefe < 10)
     {
         ControlaSpawns();
     }
     else
     {
         chefao3.SetActive(true);
         SpanwsD.SetActive(false);
         SpanwsE.SetActive(false);
     }
 }
    public void ControlaSpawns()
    {
        tempo += Time.deltaTime;


        if (tempo > 5)
        {
            SpanwsD.SetActive(false);
            SpanwsE.SetActive(true);
        }
        if (tempo > 10)
        {
            tempo = 0;
            SpanwsD.SetActive(true);
            SpanwsE.SetActive(false);
            chamaChefe++;
        }
    }