mirror of https://github.com/axmolengine/axmol.git
Merge pull request #12670 from yangws/issue_8256
Fixbug: CCTargetedAction executes callback twice.
This commit is contained in:
commit
38ded61568
|
@ -2503,6 +2503,11 @@ void TargetedAction::update(float time)
|
|||
_action->update(time);
|
||||
}
|
||||
|
||||
bool TargetedAction::isDone(void) const
|
||||
{
|
||||
return _action->isDone();
|
||||
}
|
||||
|
||||
void TargetedAction::setForcedTarget(Node* forcedTarget)
|
||||
{
|
||||
if( _forcedTarget != forcedTarget ) {
|
||||
|
|
|
@ -1509,6 +1509,10 @@ public:
|
|||
* @param time In seconds.
|
||||
*/
|
||||
virtual void update(float time) override;
|
||||
//
|
||||
// Overrides
|
||||
//
|
||||
virtual bool isDone(void) const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS:
|
||||
TargetedAction();
|
||||
|
|
Loading…
Reference in New Issue