Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
chore: comment out about target
Browse files Browse the repository at this point in the history
  • Loading branch information
claustra01 committed Aug 11, 2024
1 parent a5d1d7e commit 1fe8ccc
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/pages/yatai/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import type {
import { randFloat } from "three/src/math/MathUtils.js";
import { useSocketRefStore } from "../../store";
import {
type ActionSchema,
MessageType,
type PointerSchema,
type Target,
Expand All @@ -29,7 +28,7 @@ function Yatai() {
aimTarget(data);
}
if (data.message_type === MessageType.Action) {
shotTarget(data);
// shotTarget(data);
}
};
const currentSocketRef = socketRef?.current;
Expand All @@ -47,10 +46,10 @@ function Yatai() {
setAim({ x, y });
};

const [target, setTarget] = useState<Target | undefined>(undefined);
const shotTarget = (data: ActionSchema) => {
setTarget(data.target);
};
// const [target, setTarget] = useState<Target | undefined>(undefined);
// const shotTarget = (data: ActionSchema) => {
// setTarget(data.target);
// };

// 土台
const Foundation = (props: ThreeElements["mesh"]) => {
Expand Down

0 comments on commit 1fe8ccc

Please sign in to comment.