[Solved] How to: Mouse click = Left Key

Hello,

How do I make it so that if I click on an object with my mouse, that it does the same thing as if I click on left key.

if(Input.GetMouseButtonDown(0) || Input.GetKey(KeyCode.LeftArrow) ){
  //do something
}
1 Like

So the β€˜β€™ || β€˜β€™ means?

It means β€œor”

1 Like

Thnx!