I have a java script that I need to be able to access info in a c# script. I’m not even sure if this is possible, but if it is, I’m haven’t the slightest on the syntax.
Ex.
StateControl.js
enum GameStates { Idle = 0, Presentation, Spin, Results, SpinWithCamera, Offline };
MainControl.cs
public class Control : MonoBehaviour
{
//this is where the accessing problems are, I would like to use the enum from
//StateControl.js
void checkStates(GameStates newState, GameStates oldState)
{
//do stuff
}
}