private void OnEnable()
 {
     panelNode  = target as Graph.PanelNodeBase;
     itemDrawer = new ComponentItemDrawer();
     InitPanelPortDrawer();
     InitAnimPlayers();
     OnPrefabChanged();
     InitComponentList();
 }
 private void OnEnable()
 {
     panelNode  = target as Graph.PanelNodeBase;
     itemDrawer = new ComponentItemDrawer();
     if (panelNode.rule == null)
     {
         panelNode.rule = new GenCodeRule(Setting.defultNameSpace);
     }
     InitPanelPortDrawer();
     InitAnimPlayers();
     OnPrefabChanged();
     InitComponentList();
 }