更新技师资源

This commit is contained in:
2025-08-29 14:21:46 +08:00
parent 733a4806cf
commit 56df0e1f86
436 changed files with 18631 additions and 4265 deletions
@@ -19,10 +19,10 @@ export class SimpleToggleGroup extends Component {
}
toggleSelected(selectedNode: Node) {
const pos = this.slider.getWorldPosition();
const targetPos = new Vec3(selectedNode.worldPosition.x, pos.y, pos.z);
const pos = this.slider.getPosition();
const targetPos = new Vec3(selectedNode.getPosition().x, pos.y, pos.z);
tween(this.slider)
.to(0.3, { worldPosition: targetPos }, { easing: "sineInOut" })
.to(0.3, { position: targetPos }, { easing: "sineInOut" })
.start();
for (let i = 0; i < this.toggles.length; i++) {