C# Class MakeSoundOnTouch, goalBall

This script plays a sound when an object collides with another object.
Inheritance: MonoBehaviour
Mostrar archivo Open project: DrexelGoalBall/goalBall

Public Properties

Property Type Description
AS UnityEngine.AudioSource
ac UnityEngine.AudioClip
increment float
maxTime float
timer float

Public Methods

Method Description
FixedUpdate ( ) : void

Keeps track of the timer that regulates the frequency of the sound.

OnCollisionEnter ( Collision collision ) : void

Plays a sound on collision, assuming it has not already being played.

Start ( ) : void

Sets up all objects and variables that are needed to run the script.

Method Details

FixedUpdate() public method

Keeps track of the timer that regulates the frequency of the sound.
public FixedUpdate ( ) : void
return void

OnCollisionEnter() public method

Plays a sound on collision, assuming it has not already being played.
public OnCollisionEnter ( Collision collision ) : void
collision Collision
return void

Start() public method

Sets up all objects and variables that are needed to run the script.
public Start ( ) : void
return void

Property Details

AS public_oe property

public AudioSource,UnityEngine AS
return UnityEngine.AudioSource

ac public_oe property

public AudioClip,UnityEngine ac
return UnityEngine.AudioClip

increment public_oe property

public float increment
return float

maxTime public_oe property

public float maxTime
return float

timer public_oe property

public float timer
return float