C# Class AlterSoundPlay, Hellbound

Inheritance: MonoBehaviour
Exibir arquivo Open project: Backman/Hellbound Class Usage Examples

Public Properties

Property Type Description
m_Enter bool
m_Exit bool
m_Once bool
m_Path string
m_PlayOneShot bool
m_Position Vector3
r_GameObjects GameObject[]

Public Methods

Method Description
OnTriggerEnter ( Collider other ) : void
OnTriggerExit ( Collider other ) : void
Start ( ) : void

Private Methods

Method Description
PlayEvent ( ) : void
PlayShot ( ) : void

Method Details

OnTriggerEnter() public method

public OnTriggerEnter ( Collider other ) : void
other Collider
return void

OnTriggerExit() public method

public OnTriggerExit ( Collider other ) : void
other Collider
return void

Start() public method

public Start ( ) : void
return void

Property Details

m_Enter public_oe property

public bool m_Enter
return bool

m_Exit public_oe property

public bool m_Exit
return bool

m_Once public_oe property

public bool m_Once
return bool

m_Path public_oe property

public string m_Path
return string

m_PlayOneShot public_oe property

public bool m_PlayOneShot
return bool

m_Position public_oe property

public Vector3 m_Position
return Vector3

r_GameObjects public_oe property

AlterSoundPlay was written by Anton Thorsell Altersoundplay is to be placed on a collider (also requires a pointer to an object with an FMOD_StudioEventEmitter) This script will start or stop playing sounds depending if the player entered/exited the collider You can also specify if the sound only should be played once (if so it will destroy itself when it is done)
public GameObject[] r_GameObjects
return GameObject[]