update 添加松鼠角色

This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-10-30 02:34:11 +08:00
parent ca84f38096
commit bb4334c0ff
178 changed files with 6352 additions and 195 deletions

View File

@@ -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);
}