The x and y variables are the position of the mouse in the screen, so I think that when I move the cursor, the values may not be 0.
Moreover the CelHor and CellHorInPent and the other variables may be between 1 and 10.
I don’t know why the Text component, shows nothing or only 0 value.
If you can help me to show the coordinates of the mouse in the screen with 2 text UI component (one for x and other for the y)?
Just to make sure: these are public static variables right? If they are not static, you can not access a variable through its class and instead must work with an instance of that class.
It may also help if you posted all related code. Like the mouseUp script, or the one that fills its variables with content. This problem likely has nothing to do with the text part at all.
Further, regarding readability of the code, i would advice:
Look up C# naming conventions. People expect classes to have UpperCamelCase type names. Same with methods and properties. Variables are then written in camelCase and so on. Just to name a few. This immensely helps with identifying what you are looking at right from the get go. It also helps other programmers read your code.
Code in english. You already work with an API (Unity) in english, so at best you are mixing two languages. But in any case where you can not guarantee that you are the only person to ever read your code, you should code using english variable names. And that is pretty much always the case, ever. I just read your code, for example. For people not native in your language, your variables may as well be called A, B, C and so on. For more complex scripts this makes reasoning about them nearly impossible. When you post anything more complex with variables people cant reason about, they simply wont bother helping.