Beispiel #1
0
    public bool IsIntersection()
    {
        IntersectionEntrance ieA = AnchorA.GetComponent <IntersectionEntrance>();
        IntersectionEntrance ieB = AnchorB.GetComponent <IntersectionEntrance>();

        if (ieA == null || ieB == null)
        {
            return(false);
        }

        if (ieA.centre == ieB.centre)
        {
            return(true);
        }

        return(false);
    }
Beispiel #2
0
 public override int GetHashCode()
 {
     return(AnchorA.GetHashCode() ^ AnchorB.GetHashCode());
 }