internal static void InvokeTextureChangedCallback(TerrainData terrainData, string textureName, RectInt texelRegion, bool synched) { bool flag = TerrainCallbacks.textureChanged != null; if (flag) { Terrain[] users = terrainData.users; for (int i = 0; i < users.Length; i++) { Terrain terrain = users[i]; TerrainCallbacks.textureChanged(terrain, textureName, texelRegion, synched); } } }
internal static void InvokeHeightmapChangedCallback(TerrainData terrainData, RectInt heightRegion, bool synched) { bool flag = TerrainCallbacks.heightmapChanged != null; if (flag) { Terrain[] users = terrainData.users; for (int i = 0; i < users.Length; i++) { Terrain terrain = users[i]; TerrainCallbacks.heightmapChanged(terrain, heightRegion, synched); } } }