wip
This commit is contained in:
parent
b35c3d488e
commit
9c9921033e
2 changed files with 1 additions and 6 deletions
5
.env
5
.env
|
|
@ -1,5 +0,0 @@
|
||||||
VITE_ENVIRONMENT=dev
|
|
||||||
VITE_BACKEND_URL=https://skyjo-backend.voltvector.org
|
|
||||||
|
|
||||||
#VITE_ENVIRONMENT=local
|
|
||||||
#VITE_BACKEND_URL=http://localhost:3001
|
|
||||||
|
|
@ -22,7 +22,7 @@ const DiscardPileCard: FC<DiscardPileCardProps> = ({
|
||||||
const clickCard = () => {
|
const clickCard = () => {
|
||||||
if (!isUppermostCard) return;
|
if (!isUppermostCard) return;
|
||||||
console.log("Draw card");
|
console.log("Draw card");
|
||||||
socket.emit("draw-from-card-stack", "draw card");
|
socket.emit("click-discard-pile", "take discard pile card");
|
||||||
};
|
};
|
||||||
return <primitive object={cardObject} onClick={() => clickCard()} />;
|
return <primitive object={cardObject} onClick={() => clickCard()} />;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue