public void OnTriggerEnter(Collider other)
 {
     /*	if(climber.IsClimbing)
      *      {
      *              TriggerSound("Wood");
      *              return;
      *      }*/
     foreach (GameObject groundObject in ground.GroundObjects)
     {
         SurfaceProperty surface = groundObject.GetComponentInChildren <SurfaceProperty>();
         if (surface)
         {
             TriggerSound(surface.Material);
             return;
         }
     }
 }
Example #2
0
 public bool hasTexture(SurfaceProperty p)
 {
     return((textures & p) == p);
 }