changing scenes

hi guys i have a script in my game the hides my mouse cursor but when i change to a new scene after this scene my mouse cursor is still gone

its not a static var so i thought it shouldnt carry over scene ive tryed if statement but nothing seem to stop it

anyone got any ideas
function Update ()

      Screen.showCursor = false;


this is attached to an empty game object in my main game scene

Screen.showCursor is a static variable so it remains from one scene to another.

Now if you want it to be there in the next scene, do not place your code in the update.

function Start(){
    Screen.showCursor = true;
function Update(){
    if(something)Screen.showCursor = false;

The something could be anything like a click on a “Start game” button or else.