posted 11 years ago
Hi! I will try to explain my problem. Im creating a scripting class that expose some functionality of my game to be used on the JavaScript. So I created the following class:
So, in somewhere of my game engine Im creating a instance of this class and adding this instance to the script engine:
When Im on the script I can use this script (its works):
As you can see, the Script Engine cant access a public method called in(), but can access the method showMessage() which is declared on the same class...
I really dont know why its not working....
Help will be very appreciated! Im really stucked on this...
thanks!
Java is the best (I love C too) heehhh