cc.Class({ extends: cc.Component, properties: { }, onLoad () { this.state = 0; this.stateTag = { defalt: -1, idle: 0, run1: 1, run2: 2, run3: 3, }; this.speed = 0; this.dtSpeed = 0.5; this.dtDownSpeed = 0.1; this.lastPucnTime = 0; }, });