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

            back_layer.AddPostEffect(back);
            Owner.AddLayer(back_layer);
        }