示例#1
0
 protected override void OnHandlePropTypeBlockCcControl(CCNode node, CCNode parent, string propertyName,
                                                        BlockCCControlData blockControlData, CCBReader reader)
 {
     if (propertyName == PROPERTY_CCCONTROL)
     {
         ((CCControl) node).AddTargetWithActionForControlEvents(blockControlData.mTarget, blockControlData.mSELCCControlHandler,
                                                                blockControlData.mControlEvents);
     }
     else
     {
         base.OnHandlePropTypeBlockCcControl(node, parent, propertyName, blockControlData, reader);
     }
 }
 protected override void OnHandlePropTypeBlockCcControl(CCNode node, CCNode parent, string propertyName,
                                                        BlockCCControlData blockControlData, CCBReader reader)
 {
     if (propertyName == PROPERTY_CCCONTROL)
     {
         //((CCControl) node).AddTargetWithActionForControlEvents(blockControlData.mTarget, blockControlData.mSELCCControlHandler,
         //                                                       blockControlData.mControlEvents);
     }
     else
     {
         base.OnHandlePropTypeBlockCcControl(node, parent, propertyName, blockControlData, reader);
     }
 }