title: How to send final game score between Cocos Creator scenes?
body: <p>I'm trying to create a game with Cocos Creator. I'm using more than one file in the game. Like <code>Game.js</code> <code>GameOver.js</code> <code>Jump.js</code> etc. I'm collecting scores with <code>GainScore.js</code>. I have to send final score to <code>GameOver.js</code> file. I show the score properly during the game. But when the game is over I have to send it to the other screen. How can I use the game score as global?</p>
  <p>My gainScore function:</p>
  <pre><code>  gainScore() {
      this.score += 1;
      if (this.scoreDisplay === null) return;
      this.scoreDisplay.string = this.score;
    },
  </code></pre>
  <p>My <code>GameOver.js</code> file</p>
  <pre><code>cc.Class({
      extends: cc.Component,
  
      properties: {
          scoreEnd: {
              default: null,
              type: cc.Label,
          },
      },
  
      start() {
          this.scoreEnd.string = this.score.toString(); // I can't access with this way
      },
  });
  </code></pre>