public static CCReuseGrid actionWithTimes(int times) { CCReuseGrid cCReuseGrid = new CCReuseGrid(); if (cCReuseGrid != null) { cCReuseGrid.initWithTimes(times); } return(cCReuseGrid); }
/// <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; }
/// <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); }