This commit is contained in:
walkpan
2024-07-18 08:38:58 +08:00
parent 2ef3bcf322
commit 55542871ef
18 changed files with 409 additions and 78 deletions

View File

@@ -28,13 +28,7 @@ export class RoleViewComp extends CCComp {
this.charactor = this.getComponent(Charactor);
}
/**
* 摇杆移动
* @param dir 移动方向
*/
runJoystick(dir: Vec3) {
this.charactor.joystick(dir);
}
reset() {
this.node.destroy();