Beispiel #1
0
    private void _discoverExtraRules()
    {
        var ruleUIs = Infra.FindComponentsInChildWithTag <RuleUI>(ChoosePanel, "RuleUI");

        for (int i = 0; i < ruleUIs.Count; i++)
        {
            var rule = RuleManager.ChooseRandomExtraRule();
            ruleUIs[i].GetComponent <RuleUI>().SetRule(rule);
        }

        ChoosePanel.SetActive(true); // Show actual panel
    }