// This fills in the information in List of RuleSelectors, it is run by pushing // the "Test Control Center". This allows them to be instantiated, and given some time // before being filled in all the way. public void initializeSelectors() { int i = 0; foreach (GameObject selector in RuleSelectors) { Rule rule = RuleDatabase.RDBcontrol.rules[i++]; string newName = "Rule" + rule.ruleID.ToString(); bool isSet = GlobalControl.control.selectedRules.Contains(rule.ruleID); RuleDescriptor RD = selector.GetComponent <RuleDescriptor>(); RD.gameObject.name = newName; RD.SetInfo(RuleDisplayText, isSet, rule.ruleDesc, rule.ruleID, this); } ColorSelected(); }