private bool IsEnterExit() { var currentCoor = RobiController.GetCurrentPos(); if (currentCoor.x == 0 && currentCoor.y == 0) { return(true); } else { return(false); } }
public bool CheckRoute(bool condition) { Coordinate nextPos = RobiController.GetCurrentPos(); if (CheckOutOfIndex(nextPos)) { return(false); } //bool real = WorldMap[nextPos.x, nextPos.y] == RoadType.Visited; bool real = VisitRoadTypes[nextPos.x, nextPos.y] == RoadType.Visited; return(condition ? real : !real); }