public class ProximityAudioTrigger extends Object implements AudioTrigger
| Modifier and Type | Field and Description |
|---|---|
protected float |
maxDistance |
protected AudioSourceState |
onExit |
protected Node |
target |
| Constructor and Description |
|---|
ProximityAudioTrigger(Node target)
Creates a new ProximityAudioTrigger with a default maxDistance of 10
|
ProximityAudioTrigger(Node target,
float maxDistance,
AudioSourceState onExit) |
| Modifier and Type | Method and Description |
|---|---|
float |
getMaxDistance() |
AudioSourceState |
getOnExit() |
Node |
getTarget() |
AudioSourceState |
next(AudioSource as)
This tells the AudioEngine the desired state for any given AudioSource.
|
void |
setOnExit(AudioSourceState onExit) |
void |
setTarget(Node target) |
protected Node target
protected float maxDistance
protected AudioSourceState onExit
public ProximityAudioTrigger(Node target)
target - target of the AudioTrigger@ConstructorProperties(value={"target","maxDistance","onExit"}) @Generated(value="lombok") public ProximityAudioTrigger(Node target, float maxDistance, AudioSourceState onExit)
public AudioSourceState next(AudioSource as)
next in interface AudioTriggeras - AudioSource to test@Generated(value="lombok") public Node getTarget()
@Generated(value="lombok") public void setTarget(Node target)
@Generated(value="lombok") public float getMaxDistance()
@Generated(value="lombok") public AudioSourceState getOnExit()
@Generated(value="lombok") public void setOnExit(AudioSourceState onExit)
Copyright © 2015. All rights reserved.