Beispiel #1
0
        public void OnFixedUpdate(FlowReactorComponent _flowReactor)
        {
            for (int n = 0; n < nodes.Count; n++)
            {
                nodes[n].OnFixedUpdate(_flowReactor);
            }

            for (int s = 0; s < subGraphs.Count; s++)
            {
                if (subGraphs[s] != null && subGraphs[s].isActive)
                {
                    subGraphs[s].OnFixedUpdate(_flowReactor);
                }
            }
        }
Beispiel #2
0
        public void RegisterINodeControllables(FlowReactorComponent _fr)
        {
            for (int n = 0; n < nodes.Count; n++)
            {
                nodes[n].RegisterINodeControllables(_fr);
            }

            for (int s = 0; s < subGraphs.Count; s++)
            {
                if (subGraphs[s] != null)
                {
                    subGraphs[s].RegisterINodeControllables(_fr);
                }
            }
        }
Beispiel #3
0
        public void CallOnDisable(FlowReactorComponent _fr)
        {
            for (int i = 0; i < nodes.Count; i++)
            {
                if (nodes[i] != null)
                {
                    nodes[i].OnNodeDisable(_fr);
                }
            }

            for (int s = 0; s < subGraphs.Count; s++)
            {
                if (subGraphs[s] != null)
                {
                    subGraphs[s].CallOnDisable(_fr);
                }
            }
        }
Beispiel #4
0
        public void CallOnInitialize(FlowReactorComponent _fr)
        {
            for (int i = 0; i < nodes.Count; i++)
            {
                if (nodes[i] != null)
                {
                    nodes[i].OnInitialize(_fr);
                    _fr.NodeControllable_OnNodeInitialization(nodes[i]);
                }
            }

            for (int s = 0; s < subGraphs.Count; s++)
            {
                if (subGraphs[s] != null)
                {
                    subGraphs[s].CallOnInitialize(_fr);
                }
            }
        }
Beispiel #5
0
 public void Register(FlowReactorComponent _fr)
 {
     components.Add(_fr);
 }