コード例 #1
0
ファイル: CCReuseGrid.cs プロジェクト: chengcong/cocos2d-xna
        public static CCReuseGrid actionWithTimes(int times)
        {
            CCReuseGrid cCReuseGrid = new CCReuseGrid();

            if (cCReuseGrid != null)
            {
                cCReuseGrid.initWithTimes(times);
            }
            return(cCReuseGrid);
        }
コード例 #2
0
ファイル: CCReuseGrid.cs プロジェクト: liwq-net/liwq718
        /// <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;
        }
コード例 #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);
        }