예제 #1
0
        public void ScopeLocalTest()
        {
            AssetScope <ScopeLocal>("Test");

            var scene = SceneManager.CreateScene("ScopeLocalTestScene");

            SceneManager.SetActiveScene(scene);

            Assert.IsFalse(OneTime.Get <ScopeLocal>()["Test"]);
        }
예제 #2
0
 static void AssetScope <T>(string testString) where T : Scope, new()
 {
     Assert.IsTrue(OneTime.Get <T>()[testString]);
     Assert.IsFalse(OneTime.Get <T>()[testString]);
 }