Unity3D Game Engine – Combination of Keys Pressed – Javascript

KeyCombinationCheck.js


#pragma strict
 
function Update()
{

if((Input.GetKey("e"))&&(Input.GetKeyDown("1"))) {
print("You have pressed e+1");
}

}