()
| 1173 | |
| 1174 | |
| 1175 | StartCurrentAction() { |
| 1176 | this.aiActionMaxTime = floor(this.currentAction.holdTime * 30); |
| 1177 | this.aiActionTimer = 0; |
| 1178 | if (this.currentAction.isJump) { |
| 1179 | this.jumpHeld = true; |
| 1180 | } |
| 1181 | if (this.currentAction.xDirection === -1) { |
| 1182 | this.leftHeld = true; |
| 1183 | this.rightHeld = false; |
| 1184 | } else if (this.currentAction.xDirection === 1) { |
| 1185 | this.leftHeld = false; |
| 1186 | this.rightHeld = true; |
| 1187 | } |
| 1188 | } |
| 1189 | |
| 1190 | EndCurrentAction() { |
| 1191 | if (this.currentAction.isJump) { |