public void ToggleStandards(bool isOn)
        {
            if (StandardTransform == null || panelInterface == null)
            {
                return;
            }

            panelInterface.StandardVisible = isOn;

            StandardTransform.gameObject.SetActive(isOn);

            if (!isOn)
            {
                return;
            }

            for (int i = standardNodes.Count - 1; i >= 0; i--)
            {
                CW_StandardNode node = standardNodes[i];

                if (node == null)
                {
                    continue;
                }

                if (node.StandardInterface == null)
                {
                    continue;
                }

                node.UpdateText();

                node.gameObject.SetActive(node.StandardInterface.IsComplete);
            }
        }
Ejemplo n.º 2
0
        public void NodesOn(bool isOn)
        {
            if (CW_ProgressPanel.Instance == null)
            {
                return;
            }

            if (CW_ProgressPanel.Instance.PanelInterface == null)
            {
                return;
            }

            if (!CW_ProgressPanel.Instance.PanelInterface.AnyBodyNode(bodyName))
            {
                return;
            }

            if (StandardTransform == null)
            {
                return;
            }

            StandardTransform.gameObject.SetActive(isOn);

            if (!isOn)
            {
                return;
            }

            for (int i = nodes.Count - 1; i >= 0; i--)
            {
                CW_StandardNode node = nodes[i];

                if (node == null)
                {
                    continue;
                }

                if (node.StandardInterface == null)
                {
                    continue;
                }

                node.UpdateText();

                node.gameObject.SetActive(isOn && node.StandardInterface.IsComplete);
            }
        }