mlowijs / every

Fluent API job scheduling engine for .NET
26 stars 3 forks source link

Issue with Unity #5

Open kiamiya opened 2 years ago

kiamiya commented 2 years ago

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?