Hi!
I’m following a tutorial How to make a 2D Game. In this tutorial I’m learing how to make a ping-pong game.
There is a JavaScript for moving player object:
#pragma strict
var moveUp : KeyCode;
var moveDown : KeyCode;
var speed : float = 10;
function Update ()
{
if (Input.GetKey(moveUp))
{
}
else if (Input.GetKey(moveDown))
{
}
else
{
}
}
In the tutorial the variables are shown in the Untity Inspector panel, but I can’t get these to shown up on my Unity that I have installed on my Mac. I see only the Script name.