Пример #1
0
 public static SceneValidator createComponentValidator <A>(
     this RuntimeSceneRefWithComponent <A> sceneRef
     ) where A : Component => SceneValidator_.validateForComponent <A>();
Пример #2
0
 public static WithSceneValidator <ScenePath> toSceneNameAndValidator <A>(
     this RuntimeSceneRefWithComponent <A> sceneRef
     ) where A : Component => WithSceneValidator.a(sceneRef.scenePath, sceneRef.createComponentValidator());
Пример #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));