This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useRouter } from "next/router"; | |
import { ParsedUrlQuery } from "querystring"; | |
interface UseRouterParamsOptions { | |
method?: "push" | "replace"; | |
shallow?: boolean; | |
} | |
const useRouterParams = (options?: UseRouterParamsOptions) => { | |
const { query, pathname, push, replace } = useRouter(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SetLowRez : MonoBehaviour | |
{ | |
[SerializeField] protected bool doOnAwake = true; | |
[SerializeField] protected int xRes = 64, yRes = 64; | |
private int bigXRes, bigYRes; | |
private bool isLowRes; | |
private void SetSmallResolution() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.IO; | |
using System.Text; | |
using UnityEngine; | |
public class DebugRuntimeConsole : MonoBehaviour | |
{ | |
/// <summary> | |
/// A struct to hold all the info about a debug message. | |
/// </summary> |