mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 09:16:01 +08:00
Making sure there is only one listener set at a time
This commit is contained in:
parent
c1632ee64a
commit
8e715bd475
@ -163,9 +163,11 @@ void TrackEntry::resetRotationDirections() {
|
||||
|
||||
void TrackEntry::setListener(AnimationStateListener inValue) {
|
||||
_listener = inValue;
|
||||
_listenerObj = NULL;
|
||||
}
|
||||
|
||||
void TrackEntry::setListener(AnimationStateListenerClass* inValue) {
|
||||
_listener = dummyOnAnimationEventFunc;
|
||||
_listenerObj = inValue;
|
||||
}
|
||||
|
||||
@ -648,9 +650,11 @@ void AnimationState::setTimeScale(float inValue) {
|
||||
|
||||
void AnimationState::setListener(AnimationStateListener inValue) {
|
||||
_listener = inValue;
|
||||
_listenerObj = NULL;
|
||||
}
|
||||
|
||||
void AnimationState::setListener(AnimationStateListenerClass* inValue) {
|
||||
_listener = dummyOnAnimationEventFunc;
|
||||
_listenerObj = inValue;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user