public void ScopeLocalTest() { AssetScope <ScopeLocal>("Test"); var scene = SceneManager.CreateScene("ScopeLocalTestScene"); SceneManager.SetActiveScene(scene); Assert.IsFalse(OneTime.Get <ScopeLocal>()["Test"]); }
static void AssetScope <T>(string testString) where T : Scope, new() { Assert.IsTrue(OneTime.Get <T>()[testString]); Assert.IsFalse(OneTime.Get <T>()[testString]); }