What for script do i need?

Hello,

I use Unity not so long . I want to make an object larger when you persuaded the tricker a cardboard. But what kind of script to write? I use Visual studio.

I create a space after that i would actually stand . Now I want to make an Alice in Wonderland effect in the drawn world .
In this case, the cube is bigger when you use the tricker of cardboard .

how to write the script for? I have no experience with how to do that.