mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
update 添加松鼠角色
This commit is contained in:
@@ -7,6 +7,7 @@ import { size } from "cc";
|
||||
import { Size } from "cc";
|
||||
import { v3 } from "cc";
|
||||
import { Vec2 } from "cc";
|
||||
import { GData } from "../../../GData";
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
export interface GButtleDefaultInfo{
|
||||
@@ -19,7 +20,7 @@ export interface GButtleDefaultInfo{
|
||||
export default class GButtleDefault extends GButtleBase<GButtleDefaultInfo>{
|
||||
|
||||
setData(info:GButtleDefaultInfo){
|
||||
this.node.layer = 1;
|
||||
this.node.layer = GData.layer.World;
|
||||
this.node.addComponent(Sprite).spriteFrame = info.image;
|
||||
this.node.scale = v3(info.scale,info.scale,0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user