I made a game object, gave it a collider, and put the following script on it:
public bool Pressed = false;
void OnPress ()
{
Pressed = true;
}
When I hover my mouse cursor over the collider and click down, Pressed is not set to true. However, if I release the mouse button and then click down again, it will turn true this time.
I want "Pressed" to turn true the first time I click down, not the second time. What am I doing wrong?