Ejemplo n.º 1
0
 private void OnEnable()
 {
     isGloble = RuleHelper.IsGlobleRule(target as RuleObject);
     if (target == null)
     {
         DestroyImmediate(this);
     }
     else
     {
         RuleHelper.LoadImageImports(target as RuleObject, () => {
             RuleHelper.LoadLayerImports(target as RuleObject);
         });
         InitPropertys();
         ChargeCurrent();
     }
 }