// Token: 0x060035AC RID: 13740 RVA: 0x00169A8C File Offset: 0x00167E8C
 private static void updateSelection()
 {
     if (LevelGround.materials == null)
     {
         return;
     }
     if ((int)EditorTerrainMaterials.selected < LevelGround.materials.Length)
     {
         GroundMaterial groundMaterial = LevelGround.materials[(int)EditorTerrainMaterials.selected];
         EditorTerrainMaterialsUI.selectedBox.text       = groundMaterial.prototype.texture.name;
         EditorTerrainMaterialsUI.overgrowthSlider.state = groundMaterial.overgrowth;
         EditorTerrainMaterialsUI.chanceSlider.state     = groundMaterial.chance;
         EditorTerrainMaterialsUI.steepnessSlider.state  = groundMaterial.steepness;
         EditorTerrainMaterialsUI.heightValue.state      = groundMaterial.height;
         EditorTerrainMaterialsUI.transitionSlider.state = groundMaterial.transition;
         EditorTerrainMaterialsUI.grassy_0_Toggle.state  = groundMaterial.isGrassy_0;
         EditorTerrainMaterialsUI.grassy_1_Toggle.state  = groundMaterial.isGrassy_1;
         EditorTerrainMaterialsUI.flowery_0_Toggle.state = groundMaterial.isFlowery_0;
         EditorTerrainMaterialsUI.flowery_1_Toggle.state = groundMaterial.isFlowery_1;
         EditorTerrainMaterialsUI.rockyToggle.state      = groundMaterial.isRocky;
         EditorTerrainMaterialsUI.roadToggle.state       = groundMaterial.isRoad;
         EditorTerrainMaterialsUI.snowyToggle.state      = groundMaterial.isSnowy;
         EditorTerrainMaterialsUI.foundationToggle.state = groundMaterial.isFoundation;
         EditorTerrainMaterialsUI.manualToggle.state     = groundMaterial.isManual;
         EditorTerrainMaterialsUI.steepnessToggle.state  = groundMaterial.ignoreSteepness;
         EditorTerrainMaterialsUI.heightToggle.state     = groundMaterial.ignoreHeight;
         EditorTerrainMaterialsUI.footprintToggle.state  = groundMaterial.ignoreFootprint;
     }
 }
        // Token: 0x06003450 RID: 13392 RVA: 0x00156778 File Offset: 0x00154B78
        public static EPhysicsMaterial checkMaterial(Vector3 point)
        {
            if (LevelGround.terrain == null)
            {
                AssetReference <LandscapeMaterialAsset> reference;
                if (Landscape.getSplatmapMaterial(point, out reference))
                {
                    LandscapeMaterialAsset landscapeMaterialAsset = Assets.find <LandscapeMaterialAsset>(reference);
                    if (landscapeMaterialAsset != null)
                    {
                        return(landscapeMaterialAsset.physicsMaterial);
                    }
                }
                return(EPhysicsMaterial.NONE);
            }
            GroundMaterial material = LevelGround.getMaterial(point);

            if (material.isGrassy_0 || material.isGrassy_1 || material.isFlowery_0 || material.isFlowery_1)
            {
                return(EPhysicsMaterial.FOLIAGE_STATIC);
            }
            if (material.isRocky)
            {
                return(EPhysicsMaterial.GRAVEL_STATIC);
            }
            if (material.isRoad)
            {
                return(EPhysicsMaterial.CONCRETE_STATIC);
            }
            if (material.isSnowy)
            {
                return(EPhysicsMaterial.SNOW_STATIC);
            }
            return(EPhysicsMaterial.CONCRETE_STATIC);
        }