예제 #1
0
        public static CCScene InScene(CCWindow window)
        {
            var scene = new CCScene(window);
            var layer = new CocosInjectionLayer();

            scene.AddChild(layer);

            return(scene);
        }
예제 #2
0
        public override void ApplicationDidFinishLaunching(CCApplication application, CCWindow mainWindow)
        {
            base.ApplicationDidFinishLaunching(application, mainWindow);

            mainWindow.RunWithScene(CocosInjectionLayer.InScene(mainWindow));
        }