public static CCScene InScene(CCWindow window) { var scene = new CCScene(window); var layer = new CocosInjectionLayer(); scene.AddChild(layer); return(scene); }
public override void ApplicationDidFinishLaunching(CCApplication application, CCWindow mainWindow) { base.ApplicationDidFinishLaunching(application, mainWindow); mainWindow.RunWithScene(CocosInjectionLayer.InScene(mainWindow)); }