how can i check if i clicked on game screen ??

hey everyone, i have 2 image, yellow image and blue image, i just wanna ask : if i don’t click yellow and blue but i click on green screen, i want the debug says Debug.Log("you just click but not click on image");. thanks

You could add a script to the camera and call an if statement in the Update() like this:

void Update() {
     if(Input.GetMouseDown(0)) {
          Debug.log("I missed the cubes!");

Or you could create a GameController empty GameObject that does the same thing basically.