I got this from
if (!readyState && GUI.Button(Rect(mx,my+(mbh+5)*it,mbw,mbh), ch.heroList*.name)){*
- var switchSide: boolean;*
>>> if (Input.GetKey(“LeftAlt”)) switchSide = true; else switchSide = false; - //if (Event.current.alt) switchSide = true; else switchSide = false;*
nv.CLIENT_setchar(ch.heroList*.id.ToString(), switchSide);
_}*_
From unity script reference Input.GetKey I quote: “For the list of key identifiers see Input Manager.”
But there is no key identifiers list to be found there.
Finally I manage to find the KeyCode page. And there I see LeftAlt.
what gives?
edit:
so basically its Input.GetKey(KeyCode.LeftAlt) (or Input.GetKey(“left alt”) defined in program options) and not Input.GetKey(“LeftAlt”)
thanks to NoTakeful and shadows_s for pointing it out