Pretty new to typescript. Trying to figure out how I would access the functions in a player behavior in another script? I have player added to a game namespace like the paceman tutorial:
namespace Game {
export let initMap: initMapBehavior;
export let player: playerBehavior;
export let score: number;
export let won: boolean;
}
I was hoping I would access my player functions from other scripts by doing something like
Player.jump
But I'm getting an identifier expected error.