// WHen a Color is chosen, this will ghost rules and unghost them void ColorSelected() { // Grab list of the allowable Rules List <int> KeyRules = RuleDatabase.RDBcontrol.GetColorRules(); if (RuleSelectors == null) { print("RuleSelectors not found!"); } foreach (GameObject selector in RuleSelectors) { RuleDescriptor RD = selector.GetComponent <RuleDescriptor>(); if (!KeyRules.Contains(RD.ID)) { RD.GhostSet(true); } else { RD.GhostSet(false); } } }