C# Класс MakeSoundOnTouch, goalBall

This script plays a sound when an object collides with another object.
Наследование: MonoBehaviour
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
AS UnityEngine.AudioSource
ac UnityEngine.AudioClip
increment float
maxTime float
timer float

Открытые методы

Метод Описание
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.

Описание методов

FixedUpdate() публичный Метод

Keeps track of the timer that regulates the frequency of the sound.
public FixedUpdate ( ) : void
Результат void

OnCollisionEnter() публичный Метод

Plays a sound on collision, assuming it has not already being played.
public OnCollisionEnter ( Collision collision ) : void
collision Collision
Результат void

Start() публичный Метод

Sets up all objects and variables that are needed to run the script.
public Start ( ) : void
Результат void

Описание свойств

AS публичное свойство

public AudioSource,UnityEngine AS
Результат UnityEngine.AudioSource

ac публичное свойство

public AudioClip,UnityEngine ac
Результат UnityEngine.AudioClip

increment публичное свойство

public float increment
Результат float

maxTime публичное свойство

public float maxTime
Результат float

timer публичное свойство

public float timer
Результат float