mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
stop animation on destroy
This commit is contained in:
@@ -165,6 +165,10 @@ var Animation = cc.Class({
|
||||
this.pause();
|
||||
},
|
||||
|
||||
onDestroy: function () {
|
||||
this.stop();
|
||||
},
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Public Methods
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user