给 动画类 和 精灵类 重写typeof
This commit is contained in:
parent
04a5d61bb2
commit
f9a88932f4
|
|
@ -37,6 +37,10 @@ class Animation extends Actor {
|
||||||
//附加选项
|
//附加选项
|
||||||
AdditionalOptions = null;
|
AdditionalOptions = null;
|
||||||
|
|
||||||
|
function _typeof() {
|
||||||
|
return "animation";
|
||||||
|
}
|
||||||
|
|
||||||
constructor(...) {
|
constructor(...) {
|
||||||
base.constructor();
|
base.constructor();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,10 @@ class CL_SpriteObject extends CL_BaseObject {
|
||||||
|
|
||||||
SpriteFrame = null;
|
SpriteFrame = null;
|
||||||
|
|
||||||
|
function _typeof() {
|
||||||
|
return "sprite";
|
||||||
|
}
|
||||||
|
|
||||||
constructor(...) {
|
constructor(...) {
|
||||||
local C_Object;
|
local C_Object;
|
||||||
//创建空精灵
|
//创建空精灵
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue