DOF/sqr/User/Object/Object/AnimationObject.nut

22 lines
459 B
Plaintext

/*
文件名:AnimationObject.nut
路径:User/Object/Object/AnimationObject.nut
创建日期:2024-11-29 10:36
文件用途:动画对象
*/
class AnimationObject extends BaseObject {
//动画对象
m_Animation = null;
constructor(args) {
base.constructor();
if (typeof args == "string") {
m_Animation = Animation(args);
m_Animation.SetAnchor(0.0, 0.0);
Addchild(m_Animation);
}
}
}