public void OnEdge(EdgeView edge, bool enter) { if (enter) { m_CurrentEdge = edge; MoveToEdge(edge); } else { Assert.IsTrue(m_CurrentEdge.GetEdge().UseNode(m_CurrentNode.GetNode())); MoveToNode(m_CurrentNode == m_CurrentEdge.GetStart() ? m_CurrentEdge.GetEnd() : m_CurrentEdge.GetStart()); } }
public void OnNormalEdge(EdgeView edge) { Assert.IsTrue(edge.GetEdge().UseNode(m_CurrentNode.GetNode())); MoveToNode(m_CurrentNode == edge.GetStart() ? edge.GetEnd() : edge.GetStart()); }