这是Creator3.0的bug还是使用问题??

@property(cc.Node)
RightAnimation = null; //编辑器正常

@property(cc.Animation)
LeftAnimation = null;//编辑器显示Type(Unknow)

this.RightAnimation.components[4].play(); //正常
this.RightAnimation.getComponent(cc.Animation).play();//报错 Uncaught TypeError: Cannot read property ‘components’ of null

@gameMaster

this.RightAnimation.getComponent(AnimationComponent).play()
ps:cc全局变量都被干掉了

该主题在最后一个回复创建后14天后自动关闭。不再允许新的回复。