mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
21 lines
468 B
TypeScript
21 lines
468 B
TypeScript
|
|
import type { SDKInstanceClass } from "./instance.ts";
|
|
|
|
const C3 = globalThis.C3;
|
|
|
|
C3.Plugins.EsotericSoftware_SpineConstruct3.Acts =
|
|
{
|
|
Alert (this: SDKInstanceClass) {
|
|
alert("Test property = " + this._getTestProperty());
|
|
},
|
|
|
|
SetSkin (this: SDKInstanceClass, skinList: string) {
|
|
this.setSkin(skinList.split(","));
|
|
},
|
|
|
|
SetAnimation (this: SDKInstanceClass, track: number, animation: string, loop = false) {
|
|
this.setAnimation(track, animation, loop);
|
|
}
|
|
|
|
};
|