mirror of
https://github.com/szrpf/DataBoardDemo.git
synced 2024-12-26 03:38:33 +00:00
13 lines
216 B
TypeScript
13 lines
216 B
TypeScript
const {ccclass, property} = cc._decorator;
|
|
|
|
@ccclass
|
|
export default class Helloworld extends cc.Component {
|
|
|
|
hp = 100;
|
|
mp = 60;
|
|
|
|
update (dt) {
|
|
this.hp += 1.0*dt;
|
|
this.mp += 0.5*dt;
|
|
}
|
|
} |