示例#1
0
    public static async Task CheckAndGenerateNear(int x, int z)
    {
        await instance.CheckAndGenerateAt(x, z);

        await instance.CheckAndGenerateAt(x + 1, z + 1);

        await instance.CheckAndGenerateAt(x + 1, z);

        await instance.CheckAndGenerateAt(x + 1, z - 1);

        await instance.CheckAndGenerateAt(x, z + 1);

        await instance.CheckAndGenerateAt(x, z - 1);

        await instance.CheckAndGenerateAt(x - 1, z + 1);

        await instance.CheckAndGenerateAt(x - 1, z);

        await instance.CheckAndGenerateAt(x - 1, z - 1);

        instance.EnableOnlyNear(x, z);
    }