mlowijs / every

Fluent API job scheduling engine for .NET

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with Unity

kiamiya opened this issue · comments

Hi,
I got an issue using Ever.y in Unity, I'd like to force the player to go to a specific scene every 25 min.
I have tried both :

Ever.y(25).Minutes.Do(()=>SceneManager.LoadScene(4)); // do nothing

Ever.y(25).Minutes.Do(()=>LoadFinal()); // call LoadFinal

private void LoadFinal()
{
Debug.LogWarning("go to final"); // this one will show up
SceneManager.LoadScene(4); // do nothing
Debug.LogError("go to final 2"); // this one does nothing
}

What did I miss?