title: Changing Variable value from another class
body: <p>I have an integer(<code>levelstatus</code>) in class A(<code>LevelSelectScene</code>) and I want to change it in class B(<code>GameScene</code>), is it possible?</p>
  
  <p>here is my code:</p>
  
  <p>(Code in GameScene)</p>
  
  <pre><code>public class levelComplete()
  {
  
  levelSelectScene.getInstance.levelstatus=1;
  
  }
  </code></pre>
  
  <p><code>LevelSelectScene</code> has an public integer <code>levelstatus</code>.</p>
  
  <p>and after an event happens, <code>levelComplete</code> will trigger and will change the value of <code>levelstatus</code> from null to 1.</p>