on/off using the left mouse button unity code example
Example: unity left mouse button
//Key Code in the Input Project Settings is "mouse 0"
Input.GetKey(KeyCode.Mouse0))
//Key Code in the Input Project Settings is "mouse 0"
Input.GetKey(KeyCode.Mouse0))