Exemple #1
0
    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);
    }
Exemple #2
0
 void Awake()
 {
     tendril = GetComponent <PathTendril>();
     graph   = GameObject.FindObjectOfType <PathGraph>();
 }
Exemple #3
0
 public ToggleTendrilEvent(PathTendril tendril)
 {
     this.tendril = tendril;
 }