tk2dUISoundItem Class Reference

Plays audioclips based on uiItem events. More...

Inherits tk2dUIBaseItemControl.

List of all members.

Static Public Member Functions

static void ChangeGameObjectActiveState (GameObject go, bool isActive)
 Used for SetActive so easily works between Unity 3.x and Unity 4.x.
static void ChangeGameObjectActiveStateWithNullCheck (GameObject go, bool isActive)
 Changes active state, but first checks to make sure it isn't null.

Public Attributes

AudioClip downButtonSound
 Audio clip to play when the button transitions from up to down state. Requires an AudioSource component to be attached to work.
AudioClip upButtonSound
 Audio clip to play when the button transitions from down to up state. Requires an AudioSource component to be attached to work.
AudioClip clickButtonSound
 Audio clip to play when the button is clicked. Requires an AudioSource component to be attached to work.
AudioClip releaseButtonSound
 Audio clip to play when the button on release. Requires an AudioSource component to be attached to work.
tk2dUIItem uiItem
 Button(uiItem) for this control.

Detailed Description

Plays audioclips based on uiItem events.


Member Function Documentation

static void tk2dUIBaseItemControl.ChangeGameObjectActiveState ( GameObject  go,
bool  isActive 
) [static, inherited]

Used for SetActive so easily works between Unity 3.x and Unity 4.x.

static void tk2dUIBaseItemControl.ChangeGameObjectActiveStateWithNullCheck ( GameObject  go,
bool  isActive 
) [static, inherited]

Changes active state, but first checks to make sure it isn't null.


Member Data Documentation

Audio clip to play when the button is clicked. Requires an AudioSource component to be attached to work.

Audio clip to play when the button transitions from up to down state. Requires an AudioSource component to be attached to work.

Audio clip to play when the button on release. Requires an AudioSource component to be attached to work.

Button(uiItem) for this control.

Audio clip to play when the button transitions from down to up state. Requires an AudioSource component to be attached to work.