Esempio n. 1
0
 public static SceneValidator createComponentValidator <A>(
     this RuntimeSceneRefWithComponent <A> sceneRef
     ) where A : Component => SceneValidator_.validateForComponent <A>();
Esempio n. 2
0
 public static WithSceneValidator <ScenePath> toSceneNameAndValidator <A>(
     this RuntimeSceneRefWithComponent <A> sceneRef
     ) where A : Component => WithSceneValidator.a(sceneRef.scenePath, sceneRef.createComponentValidator());
Esempio n. 3
0
 public static B withSceneObject <A, B>(
     this RuntimeSceneRefWithComponent <A> sceneRef, Fn <A, B> f
     ) where A : Component =>
 withScene(sceneRef.scenePath, scene => f(scene.findComponentOnRootGameObjects <A>().rightOrThrow));