I am relatively new to Unity and I'm struggling to pinpoint the cause of this bug. It seems that I have a class of static constants in my project where I store various boolean checks. Additionally, I have implemented a smoothFollow Script in my project using JS.
The issue arises when I try to reference a check from my C# Constants class in the JS smooth follow file. Here's an example:
if(Constants.isWheelCameraActive){
wantedHeight = 6.5;
} else {
wantedHeight = target.position.y + 3 + height_offsetY;
}
However, I keep encountering syntax errors like unexpected tokens and missing elements.