topical media & game development

talk show tell print

lib-unity-tutorial-gameplay-Assets-Scripts-Effects-CollisionSoundEffect.js / js



  // Small script to hold a reference to an audioclip to play when the player hits me.
  
  // This script is attached to game object making up your level. 
  // The "Foot" script (which is attached to the player) looks for this script on whatever it touches.
  // If it finds it, then it will play the sound when the foot comes in contact
  
  var audioClip : AudioClip;
  var volumeModifier = 1.0;
  


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.