title: How to change a class variable?
body: <p>I have a class in a very basic C# console game (text adventure) that I would like to modify a variable elsewhere in the code. I understand that C# does not allow global variables, but that is essentially what I am looking for.</p>
  
  <p>I am a beginner at programming. I am stumped and I've been unable to find an answer to this question. It's really a question of scope that I'm after; what variables can "talk" to each other. I'll include a simple example below.   </p>
  
  <p>All of these fields in the class will
   be modified elsewhere within various methods.</p>
  
  <pre><code>class Player        
  {
      public int health = 100;
      public string armor = "none";
      public string gun = "none";
      public int money = 1000;
  }
  
      public static void AddMoney()
  {
      var NewPlayer = new Player();
      NewPlayer.money += 1500;
  }
  </code></pre>
  
  <p>So I want to basically know what is expected of me to do if global variables aren't a thing in C#.</p>