33 lines
652 B
TypeScript
33 lines
652 B
TypeScript
import { _decorator, Component, Node, Label } from 'cc';
|
|
const { ccclass, property } = _decorator;
|
|
|
|
@ccclass('ItemTemplate')
|
|
export class ItemTemplate extends Component {
|
|
@property(Label)
|
|
public bctype = null;
|
|
@property(Label)
|
|
public num = null;
|
|
@property(Label)
|
|
public type = null;
|
|
@property(Label)
|
|
public price = null;
|
|
@property(Label)
|
|
public time = null;
|
|
init(data){
|
|
this.bctype = data.bctype;
|
|
this.num = data.num;
|
|
this.type = data.type;
|
|
this.price = data.price;
|
|
this.time = data.time;
|
|
}
|
|
|
|
start() {
|
|
|
|
}
|
|
|
|
update(deltaTime: number) {
|
|
|
|
}
|
|
}
|
|
|