I’ve got a problem where C# doesn’t seem to be able to find other scripts in the same namespace. I have two scripts in separate parallel folders that are both recognised by the visual studio tree. I try to use a bool or something like that with OtherScript.NameOfTheBool and it’s not detected for some reason even though the name of the script is showing green. I copy pasted the name, so I’m sure it’s spelt right, and they’re all public. I don’t know what’s going on, but I’m hoping someone can tell me.
private void Update()
{
if (PlayerController.teleportMovement)
{
(script I know works)
}
}
In PlayerController:
public bool teleportMovement = false;