Standard UI Button is not working

Very strange situation. My buttons work perfectly at the start of the game, but after I begin “play” a game - they stop do this. The only one I do - start an animation from a script. If be more accurate - I changed a “gameStarted” variable in Animator, that one attached to my Canvas. So, as I understood, buttons don`t work when they animated?

After a long time of looking for an answer, I noticed that my canvas z position the same as the camera z position…