/// <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;
 }
        public static CCLayerMultiplex layerWithLayers(params CCLayer[] layer)
        {
            CCLayerMultiplex multiplex = new CCLayerMultiplex();

            if ((multiplex != null) && multiplex.initWithLayers(layer))
            {
                return(multiplex);
            }
            multiplex = null;
            return(null);
        }
Exemple #3
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);
        }