Hey Guys!
I’ve scoured the forums and general internet for this issue and have come up blank thus far. My problem is this:
I have a script called Interact. It is a JavaScript, and it is attached to my “Player”. I have a script called ExploderObject. It is a C# script, and it is attached to a game object called “Exploder”. In ExploderObject there is a public function called Explode();
The C# Script is located in a folder called “Plugins”. I placed it here based off of the way that Unity executes its scripts so that the C# script runs before the Javascript.
In my JavaScript, I define “Exploder” as a GameObject. I then attempt to GetComponent.().Explode(); after the player interacts with an object, but I receive an error “ExploderObject does not denote a valid type”. I’ve quadruple checked to ensure there are no spelling issues or mistypes. Anyone have any ideas or see something I’m confused on?
Thanks in advance!