public bool CanReachFinishIf(PathTendril tendril, bool tentativeState) { PathEdge edgeException = tentativeState ? null : tendrilToEdge[tendril]; if (startNode == null || finishNode == null) { Debug.LogError("Set start and finish nodes"); } bool canReachFinish = DoesPathExist(startNode, finishNode, edgeException, tentativeState); return(canReachFinish); }
void Awake() { tendril = GetComponent <PathTendril>(); graph = GameObject.FindObjectOfType <PathGraph>(); }
public ToggleTendrilEvent(PathTendril tendril) { this.tendril = tendril; }