mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
update 添加松鼠角色
This commit is contained in:
22
JisolGameCocos/assets/script/battle/effect/GEffectUtil.ts
Normal file
22
JisolGameCocos/assets/script/battle/effect/GEffectUtil.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import { UITransform } from "cc";
|
||||
import { Node } from "cc";
|
||||
import { sp } from "cc";
|
||||
import JNSkeleton from "../../../../extensions/ngame/assets/ngame/sync/frame/game/spine/JNFrameSkeleton";
|
||||
import { GData } from "../../GData";
|
||||
|
||||
export default class GEffectUtil {
|
||||
|
||||
//创建一个Spine特效
|
||||
static create(spine:sp.SkeletonData):JNSkeleton{
|
||||
let effectNode = new Node();
|
||||
effectNode.layer = GData.layer.World;
|
||||
effectNode.addComponent(UITransform);
|
||||
let ske = effectNode.addComponent(JNSkeleton);
|
||||
ske.skeletonData = spine;
|
||||
ske.premultipliedAlpha = false;
|
||||
return ske;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "4.0.23",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "2935c359-6cdd-4449-adae-57fc390c9e45",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
Reference in New Issue
Block a user