コード例 #1
0
    public override void ReturnHome()
    {
        List <Node> entrances = Origin.CheckAdjWater();

        if (entrances.Count == 0)
        {
            Kill();
            return;
        }
        Path          = FindPath(new Node(X, Y), entrances[0]);
        ReturningHome = true;
        Stuck         = true;
    }