Ejemplo n.º 1
0
    public virtual void OnDisable()
    {
        int       count = nodeList.Count;
        int       i     = 0;
        LogicNode node  = null;

        for (i = 0; i < count; i++)
        {
            node = nodeList[i];
            if (node.IsValid)
            {
                node.OnDisable();
            }
        }

        count = logicList.Count;
        for (i = 0; i < count; i++)
        {
            if (logicList[i].IsValid)
            {
                logicList[i].OnDisable();
            }
        }
    }