My project structure is

Following script is attached with Login button

How to access the texts entered at Username and Password Field from my custom script (MyButtom.cs) which is attached to Login Button?

?
help me with proper code example to understand the logic behind this to do.
