title: Cannot find instance of an object
body: <p>The problem I am facing at the moment is that right now I have warnings:
  <a href="https://i.stack.imgur.com/3nMPJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3nMPJ.png" alt="enter image description here"></a></p>
  
  <p>which are created by this code snippet:
  <a href="https://i.stack.imgur.com/3k1st.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3k1st.png" alt="enter image description here"></a></p>
  
  <p>But if I correct the code by changing line 24 to:
  <a href="https://i.stack.imgur.com/AnOT9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AnOT9.png" alt="enter image description here"></a></p>
  
  <p>The result is an error saying that in line 24 the insance is not declared, in the picture is visible that I added the script to my GameObject, but it has no variables filled in.
  <a href="https://i.stack.imgur.com/XikGF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XikGF.png" alt="enter image description here"></a></p>
  
  <p>Been dealing with this for 2 days now, really need your help. Thank you!</p>