DaFuWeng/assets/scripts/game_root.ts

19 lines
440 B
TypeScript
Raw Normal View History

2024-03-06 21:28:41 +08:00
import { _decorator, Component, Node } from 'cc';
import { dice_domponent , dice_node , dice_dd } from './dice_animation';
const { ccclass, property } = _decorator;
@ccclass('game_root')
export class game_root extends Component {
start() {
const dice = new dice_domponent();
this.node.addChild(new dice_node());
this.node.addChild( dice_dd.getNode() );
}
update(deltaTime: number) {
}
}