|
I want to put the konami code as an easter egg in a game that I'm making but I have no idea how. I know that in the HTML version of java script there is a function but the java script that is used in unity is slightly different. Is the function in the unity version of java script? If not, how would I go about scripting that? Thanks for your help.
(comments are locked)
|
|
Here's a solution (now solved): Funny function to implement! :-) I was trying to figure this out, too... For the line: I'm having trouble understanding why pressing the letter keys kept giving a "None". Any thoughts? Nice implementation, by the way.
Jun 20 '11 at 09:01 PM
Chris D
Thanks Chris! It seems like it fires a double event due to Control, checking with: seems to trigger the action just once while Control or Command is pressed.
Jun 20 '11 at 09:13 PM
save
That's awesome, thanks.
Jun 20 '11 at 09:43 PM
Ryan 8
(comments are locked)
|

While I'm having a hard time finding a solution for JS, Stack Overflow has an example in C#. It looks like you have to dig into the keyboard handling events of .Net :(