|
@@ -208,8 +208,11 @@ export class NestPlay extends cc.Component {
|
|
|
ani.once(cc.Animation.EventType.FINISHED, ()=>{
|
|
|
cnt++;
|
|
|
if(cnt < this.aniClip.length){
|
|
|
- aniNode.angle = 0;
|
|
|
callAni();
|
|
|
+
|
|
|
+ cc.director.once(cc.Director.EVENT_AFTER_DRAW, ()=>{
|
|
|
+ aniNode.angle = 0;
|
|
|
+ });
|
|
|
}
|
|
|
else{
|
|
|
let nodeBox = aniNode.getBoundingBoxToWorld();
|
|
@@ -263,8 +266,11 @@ export class NestPlay extends cc.Component {
|
|
|
ani.once(cc.Animation.EventType.FINISHED, ()=>{
|
|
|
cnt++;
|
|
|
if(cnt < this.aniClip.length){
|
|
|
- aniNode.angle = 0;
|
|
|
+
|
|
|
callAni();
|
|
|
+ cc.director.once(cc.Director.EVENT_AFTER_DRAW, ()=>{
|
|
|
+ aniNode.angle = 0;
|
|
|
+ });
|
|
|
}
|
|
|
else{
|
|
|
let nodeBox = aniNode.getBoundingBoxToWorld();
|