BBGamelib.CCMenuItem.initWithBlock C# (CSharp) Method

initWithBlock() protected method

protected initWithBlock ( CCMenuItemDelegate block ) : void
block CCMenuItemDelegate
return void
		protected virtual void initWithBlock(CCMenuItemDelegate block){
			if(block!=null)
				_block = block;
			this.anchorPoint = new Vector2 (0.5f, 0.5f);
			_isEnabled = true;
			_isSelected = false;

			// WARNING: Will be disabled in v2.2
			_releaseBlockAtCleanup = true;
		}