Exemplo n.º 1
0
 /// <summary>
 ///  * lua script can not init with undetermined number of variables
 /// * so add these functinons to be used with lua.
 /// </summary>
 /// <param name="layer"></param>
 /// <returns></returns>
 public static CCLayerMultiplex LayerWithLayer(CCLayer layer)
 {
     var pMultiplexLayer = new CCLayerMultiplex();
     pMultiplexLayer.InitWithLayer(layer);
     //pMultiplexLayer->autorelease();
     return pMultiplexLayer;
 }
Exemplo n.º 2
0
        public static CCLayerMultiplex layerWithLayer(CCLayer layer)
        {
            CCLayerMultiplex multiplex = new CCLayerMultiplex();

            multiplex.initWithLayer(layer);
            return(multiplex);
        }
Exemplo n.º 3
0
        /// <summary>
        ///  * lua script can not init with undetermined number of variables
        /// * so add these functinons to be used with lua.
        /// </summary>
        /// <param name="layer"></param>
        /// <returns></returns>
        public static CCLayerMultiplex layerWithLayer(CCLayer layer)
        {
            CCLayerMultiplex pMultiplexLayer = new CCLayerMultiplex();

            pMultiplexLayer.initWithLayer(layer);
            //pMultiplexLayer->autorelease();
            return(pMultiplexLayer);
        }
Exemplo n.º 4
0
 /// <summary>
 ///  creates a CCLayerMultiplex with one or more layers using a variable argument list. 
 /// </summary>
 /// <param name="layer"></param>
 /// <param name="?"></param>
 /// <returns></returns>
 public static CCLayerMultiplex layerWithLayers(params CCLayer[] layer)
 {
     CCLayerMultiplex pMultiplexLayer = new CCLayerMultiplex();
     if (pMultiplexLayer != null && pMultiplexLayer.initWithLayers(layer))
     {
         //pMultiplexLayer->autorelease();
         return pMultiplexLayer;
     }
     pMultiplexLayer = null;
     return null;
 }
Exemplo n.º 5
0
        public static CCLayerMultiplex layerWithLayers(params CCLayer[] layer)
        {
            CCLayerMultiplex multiplex = new CCLayerMultiplex();

            if ((multiplex != null) && multiplex.initWithLayers(layer))
            {
                return(multiplex);
            }
            multiplex = null;
            return(null);
        }
Exemplo n.º 6
0
        /// <summary>
        ///  creates a CCLayerMultiplex with one or more layers using a variable argument list.
        /// </summary>
        /// <param name="layer"></param>
        /// <param name="?"></param>
        /// <returns></returns>
        public static CCLayerMultiplex layerWithLayers(params CCLayer[] layer)
        {
            CCLayerMultiplex pMultiplexLayer = new CCLayerMultiplex();

            if (pMultiplexLayer != null && pMultiplexLayer.initWithLayers(layer))
            {
                //pMultiplexLayer->autorelease();
                return(pMultiplexLayer);
            }
            pMultiplexLayer = null;
            return(null);
        }
Exemplo n.º 7
0
        public override void runThisTest()
        {
            CCLayer pLayer1 = new MenuLayer1();
            CCLayer pLayer2 = new MenuLayer2();
            CCLayer pLayer3 = new MenuLayer3();
            CCLayer pLayer4 = new MenuLayer4();
            CCLayer pLayer5 = new MenuLayerPriorityTest();

            CCLayerMultiplex layer = new CCLayerMultiplex(pLayer1, pLayer2, pLayer3, pLayer4, pLayer5);
            AddChild(layer, 0);

            CCDirector.SharedDirector.ReplaceScene(this);
        }
Exemplo n.º 8
0
 /// <summary>
 ///  creates a CCLayerMultiplex with one or more layers using a variable argument list. 
 /// </summary>
 /// <param name="layer"></param>
 /// <param name="?"></param>
 /// <returns></returns>
 public static CCLayerMultiplex Create(params CCLayer[] layer)
 {
     var pMultiplexLayer = new CCLayerMultiplex();
     pMultiplexLayer.InitWithLayers(layer);
     return pMultiplexLayer;
 }