public void SwitchRule(GameObject rule) { if (STATE == GameState.PLAYER) { if (rule != null) { current_rule = rule.GetComponent <RuleButon>().RULE; //Report.ActivateRule(level_string, current_rule); } else { current_rule = null; } ruleList.setActiveRule(rule); ChangeState(GameState.LOGIC); } }