What is wrong with my code...watched an unity tutorial and I keep forgetting everything!

here’s the screenshot:

  1. disVar is only initialized in Awake(); you should create a field
    private int disVar;
  2. In LateUpdate if(disVar = int 42); should be if(disVar == 42) without ; at the end of the line
  3. LateUpdate is never closed with a curling brackets }