|
ButtonAction is a function of a script.. As you see.. I MUST use the string parameter of GetComponent but I need to make it work on Android. All the loop-holes were using the Type parameter instead of String. I need a way to get it work as a string or convert ("Int_" + LinkedObj.name) into a component type.
(comments are locked)
|
|
Unity doesn't support dynamic typing when porting to Android. If you're planning to go mobile, you should always include Quick and dirty solution: If you're interested in object-oriented programming, it offers a simple and performant solution: create an abstract "button" class with a virtual Thank you. What is the reason for using #pragma strict? Also, I do know a good amount on OOP. I learned a lot about it when I created an RPG in MS Visual Studio's Visual Basic when I was younger. Also the button isn't like a gui button, its a activation button in-game like a swtch or lever. But that clas idea should still work but its not what I'm aiming for, I read more into that SendMessage method and it will work fine for using any linkedobj ill be using. Again thank you.
Mar 19 '12 at 01:35 AM
indGaming
In particular, dynamic typing is disabled when you're in strict mode.
Mar 21 '12 at 08:34 PM
rutter
(comments are locked)
|
