feat: sequencing
This commit is contained in:
@@ -8,17 +8,17 @@ interface NPCHelperProps {
|
||||
}
|
||||
|
||||
export function NPCHelper({ position }: NPCHelperProps): React.JSX.Element {
|
||||
const step = useGameStore((state) => state.intro.currentStep);
|
||||
const setStep = useGameStore((state) => state.setIntroStep);
|
||||
const step = useGameStore((state) => state.pylone.currentStep);
|
||||
const setPyloneStep = useGameStore((state) => state.setPyloneState);
|
||||
const debug = Debug.getInstance();
|
||||
|
||||
const handlePress = (): void => {
|
||||
if (step === "searching") {
|
||||
setStep("helped");
|
||||
setPyloneStep({ currentStep: "helped" });
|
||||
}
|
||||
};
|
||||
|
||||
const shouldShow = step === "searching" || debug.active;
|
||||
const shouldShow = step === "searching" || step === "helped" || debug.active;
|
||||
|
||||
if (!shouldShow) {
|
||||
return <></>;
|
||||
|
||||
Reference in New Issue
Block a user