So script2.cs contains a variable like $var = 0
and in script 1.cs there is a check like:
player is near some point inrange like 5.0
so if this is true, then open script2.cs
and change $var value to 1 ($var = 1)
What would be the code for that ?