Пример #1
0
 public static T InstanceToRoot <T>(this PackedScene packedScene, SceneTree tree) where T : Node
 {
     return(packedScene.InstanceToParent <T>(tree.Root));
 }
Пример #2
0
 public static T InstanceToCurrentScene <T>(this PackedScene packedScene, SceneTree tree) where T : Node
 {
     return(packedScene.InstanceToParent <T>(tree.CurrentScene));
 }