I have a .ts file called Wallblock.ts which has a variable within a function -
export function CreateWalls(): void {
//VIP VARIABLE
var VIPPass: boolean = false; //Variable true if VIP item held
How would I access the state of this boolean in another .ts file/function - I assume I have to import the variable state somehow from the function CreateWalls? But a total newbie and struggling to work out how?
not sure if it makes any difference but this is for a Decentraland ts project
Have tried using
import { CreateWalls } from './WallBlock';
in the other .ts file