I cant access a script that I made in Assets/Scripts from the FirstPersonCharacter script.
So basically I just want to access a script so I can get the boolean variable that I made static to put in FirstPersonCharacter script. The error that it says is : the name CoinSystem does not exist in the current context. It works perfectly for the other scripts that I made that use CoinSystem's boolean variable.
Comment
Answer by pauls_unity · Oct 17, 2017 at 02:30 PM
How are you accessing the member? Some sample code would make your question clearer.
Note: If it is a static member variable you will still need to make an object of the Class where that member is defined in order to access it. You will then use that object name.membername to grab the data from the variable.