Hello!
This script does what i want, but its missing one feature. i want it to have to be clicked 3 times before it will destroy the cube. But i don’t have the slightest idea on how to achieve it.
function OnMouseDown()
{
Destroy(gameObject);
}
any help is greatly appreciated guys and gals!