protected override void OnSceneRegistered() { if (!Owner.Layers.Contains(UILayer)) { Owner.AddLayer(UILayer); } }
protected override void OnSceneRegistered() { var back = new BackGround(ShaderPath); var back_layer = new Layer2D { DrawingPriority = 0 }; back_layer.AddPostEffect(back); Owner.AddLayer(back_layer); }