Ejemplo n.º 1
0
    private bool IsEnterExit()
    {
        var currentCoor = RobiController.GetCurrentPos();

        if (currentCoor.x == 0 && currentCoor.y == 0)
        {
            return(true);
        }
        else
        {
            return(false);
        }
    }
Ejemplo n.º 2
0
    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);
    }