Hey everyone,
I’m playing with the rock paper scissors example found here: http://unifycommunity.com/wiki/index.php?title=Programming_Chapter_2_Old#Code_-_Relational_Operators and want to add a line that prints which button was clicked to the console.
I’m new to Javascript and pretty bad at deciphering code but I think the best place to put the line would be here in the TextButton script:
function OnMouseUp ()
{
isPressed = false;
manager.OnSelection(guiText.text);
}
if I’m correct this is where the player’s selection is made and sent to the manager where the string interpreted as a rock paper or scissor. What I don’t know is how to get that string to print using Debug.Log or Print. Any help is appreciated!