help with changing scene

I made a script where the function writes PlayerPrefs.SetFloat my time to switch scene but alas I qando back to the scene of the value of the variable float back to the start value of the static as I do not come back?

It seems that you’re writing the current time to PlayerPrefs, but can’t restore it when reloading the scene - is it right? Well, you can’t write to Time.time - it’s read-only. If you want to keep counting time when reloading the scene, use a separate variable.

Parece que você salvou o tempo atual em PlayerPrefs, mas não consegue setar o tempo para o valor lido quando recarrega a cena - é isso mesmo? Se sim, más notícias: não se pode modificar Time.time, pois ela é uma propriedade read-only. Se você quiser manter a contagem de tempo quando voltar para a cena, use uma variável extra.

static var curTime: float;

function Update(){
  curTime += Time.deltaTime;
}

Save and restore curTime instead of Time.time.

Salve e restaure a variável curTime ao invés de Time.time.

HINT: Google Translate does a bad job when translating from/to certain languages (like portuguese and spanish to english and vice-versa). A good solution is to post the question translated to english and, below it, the original text in your native language: probably someone that understands it may help you posting answers or editing your question.

DICA: O Google Translate é bem ruinzinho para português e espanhol, e provavelmente para outras línguas também. Quando for postar uma questão, poste a versão traduzida para o inglês e logo abaixo poste também o original em português - tem vários brasileiros, portugueses e outros no site que podem ajudar editando a questão e/ou postando respostas bilíngues.