Card being detected as closed and opened at the same time

One thing I noticed is that each card acquires input focus in card.script and each card forwards converted coordinates to the cursor. This is not what I suggested in my previous answer. Having many game objects acquire input focus will fill up the input queue which can be seen by this error message:

WARNING:GAMEOBJECT: Input focus could not be acquired since the buffer is full (16).

The other problem with your approach is that each time you move the mouse or generate some other input event it will be sent to all instances of the card.script. This is the reason why you see multiple log entries each frame.

You should only update the cursor position once per frame, preferably from the controller.script.

2 Likes