Esempio n. 1
0
    public override void ReturnHome()
    {
        List <Node> entrances = Origin.GetAdjWaterTiles();

        if (entrances.Count == 0)
        {
            DestroySelf();
            return;
        }
        FindPathTo(entrances);
        data.ReturningHome = true;
        Stuck = true;
    }