#pragma strict
var moveUp :KeyCode;
var moveDown :KeyCode;
var speed :float=10;
functionUpdate(){
if(Input.GetKey(moveUp))
{
// player keatas
}
elseif(Input.GetKey(moveDown))
{
// player kebawah
}
else
{
// player diam
}
}
in tutorial,after this script is create,variable moveUp,moveDown,speed should be appear in inspector so we can put keyboard control.but when i try by myself using monodevelop,the variable not appear.i’m already follow the step in tutorial that i watch but still not appear.i’m already run(no error) and save the script but still not appear
sorry for my bad grammar and if this is in wrong section