Hey everyone I recently purchased a asset on the store and knowing me I didn’t check if it was in JS or C#. It was in C# and I need the C# script to read off a boolean that I have in a JS script by the name “PlayerStatics”

Javascript Boolean

static var canMove : boolean = true;

Then I want the C# script to read if it’s true or not in a if statement

	private void Update() {

		if (PlayerStatics.canMove == true){

How would I do this properly if it’s possible? Thanks in advance!

You need to put the .js file into a folder. This folder should be created with the name “Editor”, inside there you should make a folder named “Plugins”.
pop the .js file in there.

You have run into what is known as a scripting execution order problem.

As the two languages compile differently, one of them needs to be lumped into a folder that compiles before the code that uses it compiles, hence the folder structure “Editor->Plugins” does exactly that.

This may help benefit your knowledge on the subject a little more…
How to access C# script from Javascript or vice versa

Take care bud, and hope that helps some.
Gruffy