C# Class MakeSoundOnTouch, goalBall

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

Méthodes publiques

Свойство Type Description
AS UnityEngine.AudioSource
ac UnityEngine.AudioClip
increment float
maxTime float
timer float

Méthodes publiques

Méthode 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 méthode

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

OnCollisionEnter() public méthode

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

Start() public méthode

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

Property Details

AS public_oe property

public AudioSource,UnityEngine AS
Résultat UnityEngine.AudioSource

ac public_oe property

public AudioClip,UnityEngine ac
Résultat UnityEngine.AudioClip

increment public_oe property

public float increment
Résultat float

maxTime public_oe property

public float maxTime
Résultat float

timer public_oe property

public float timer
Résultat float