Exemplo n.º 1
0
    public IEnumerator RequestNextStep(ParcelBot bot)
    {
        Vector2Int target  = bot.GetTarget();
        Vector2Int current = bot.GetCurrent();

        //start the algorithm
        yield return(StartCoroutine(CalculateNextStep(bot, current, target)));
    }