// Learn TypeScript:
// - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
const { ccclass, property } = cc._decorator;
@ccclass
export default class Ui extends cc.Component {
@property(cc.Label)
label: cc.Label = null;
@property
text: string = 'hello';
@property({
type: cc.Node
})
dialog: cc.Node = null;
@property({
type: cc.Button
})
btnScale: cc.Button = null;
@property({
type: cc.Button
})
btnMove: cc.Button = null;
scaleClickCount: number = 0;
moveClickCount: number = 0;
// LIFE-CYCLE CALLBACKS:
onLoad() {
let LEFT_TO_RIGHT: string = &#
cocos监听按钮,监听动画结束
最新推荐文章于 2022-10-26 15:16:03 发布