Ejemplo n.º 1
0
        public static CCReuseGrid actionWithTimes(int times)
        {
            CCReuseGrid cCReuseGrid = new CCReuseGrid();

            if (cCReuseGrid != null)
            {
                cCReuseGrid.initWithTimes(times);
            }
            return(cCReuseGrid);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// creates an action with the number of times that the current grid will be reused
        /// </summary>
        /// <param name="times"></param>
        /// <returns></returns>
        public static CCReuseGrid actionWithTimes(int times)
        {
            CCReuseGrid pAction = new CCReuseGrid();
            if (pAction != null)
            {
                if (pAction.initWithTimes(times))
                {
                    //pAction->autorelease();
                }
                else
                {
                    //CC_SAFE_DELETE(pAction);
                }
            }

            return pAction;
        }
Ejemplo n.º 3
0
        /// <summary>
        /// creates an action with the number of times that the current grid will be reused
        /// </summary>
        /// <param name="times"></param>
        /// <returns></returns>
        public static CCReuseGrid actionWithTimes(int times)
        {
            CCReuseGrid pAction = new CCReuseGrid();

            if (pAction != null)
            {
                if (pAction.initWithTimes(times))
                {
                    //pAction->autorelease();
                }
                else
                {
                    //CC_SAFE_DELETE(pAction);
                }
            }

            return(pAction);
        }