Esempio n. 1
0
 public void CallUpdate()
 {
     if (outputSocket.IsConnected())
     {
         for (int i = 0; i < outputSocket.ConnectedCount; i++)
         {
             Node node = (Node)outputSocket.GetConnectedSocket(i).Parent;
             node.Update();
         }
     }
 }
Esempio n. 2
0
        public List <int> GetConditionID()
        {
            List <int> input = new List <int>();

            if (outSocket.IsConnected())
            {
                // 遍尋所有連接的狀態條件
                for (int i = 0; i < outSocket.ConnectedCount; i++)
                {
                    // 狀態條件
                    AbstracStateConditionNode node = (AbstracStateConditionNode)outSocket.GetConnectedSocket(i).Parent;

                    // 該狀態條件有下一個狀態
                    if (node.outSocket.IsConnected())
                    {
                        input.Add(node.Id);
                    }
                }
            }

            return(input);
        }