예제 #1
0
    // Helper class method that creates a Scene with the HelloWorldLayer as the only child.
    public static CCScene  Scene()
    {
        // 'scene' is an autorelease object.
        CCScene scene = new CCScene();

        // 'layer' is an autorelease object.
        HelloWorldLayer layer = new HelloWorldLayer();

        // add layer as a child to scene
        scene.addChild(layer);

        // return the scene
        return(scene);
    }
    // Helper class method that creates a Scene with the HelloWorldLayer as the only child.
    public static CCScene Scene()
    {
        // 'scene' is an autorelease object.
        CCScene scene = new CCScene();

        // 'layer' is an autorelease object.
        HelloWorldLayer layer = new HelloWorldLayer();

        // add layer as a child to scene
        scene.addChild(layer);

        // return the scene
        return scene;
    }