public override void ReturnHome() { List <Node> entrances = Origin.CheckAdjGround(); if (entrances.Count == 0) { Kill(); return; } Path = FindPath(new Node(X, Y), entrances[0]); ReturningHome = true; Stuck = true; }
public override void ReturnHome() { List <Node> entrances = Origin.CheckAdjGround(); if (entrances.Count == 0) { Kill(); return; } Path = FindPath(new Node(X, Y), entrances[0]); ReturningHome = true; Stuck = true; }