Example #1
0
 public bool IsSame(WFBar otherBar)
 {
     if (otherBar._fromNodeId == _fromNodeId && otherBar._toNodeId == _toNodeId)
     {
         return(true);
     }
     if (otherBar._fromNodeId == _toNodeId && otherBar._toNodeId == _fromNodeId)
     {
         return(true);
     }
     return(false);
 }
        public static WFData GetTestData()
        {
            var data = new WFData();

            data.wfNodes = new List <WFNode>();
            var node1 = new WFNode(Vector3.zero);

            data.wfNodes.Add(node1);
            var node2 = new WFNode(Vector3.one);

            data.wfNodes.Add(node2);

            data.wfBars = new List <WFBar>();
            var bar = new WFBar(node1.m_id, node2.m_id, BarPosType.upBar);

            data.wfBars.Add(bar);
            return(data);
        }
 public void OnInitialized(WFBar bar)
 {
     this.Info = bar;
     CreateCollider();
 }