title: Adding a point to variable every second doesn't work (Unity3d)
body: <pre><code>public static int pscore = 0;
  void Start()
  {
       InvokeRepeating("AddToMoney",1, 1);  
  }
  void AddToMoney ()
  {
       pscore++;
  }
  </code></pre>
  
  <p>I have this code to add a point to integer pscore every second. But right now it adds 2 points instead of one. Is it because it's static? And if so, how can I fix it? Or how can I transfer one variable from script to another script without using static? </p>
  
  <p>Note: I couldn't get answer in the unity3d forums, that's why I'm asking here.</p>