示例#1
0
// ReSharper disable UnusedMember.Local
        private static void DisableConnection(MeshTile tile, int index)
// ReSharper restore UnusedMember.Local
        {
            lock (_threadLocker)
            {
                try
                {
                    Poly poly = tile.GetPolygon((ushort)(index + tile.Header.OffMeshBase));
                    if (poly == null)
                    {
                        return;
                    }
                    poly.Disable();
                }
                catch (Exception exception)
                {
                    Logging.WriteError("DisableConnection(MeshTile tile, int index): " + exception);
                }
            }
        }