How to declare "global" variable in OOP project?
<p>suppose you've this code: </p>

<pre><code>namespace StighyGames.CarsAttack {


    public class CarsAttack

   {    


     public static Channel[] ch = new Channel[30];      
   ...
    }
void main {
   CarsAttack game = new CarsAttack();
}
</code></pre>

<p>}</p>

<p>In another cs file on the same project i declare another Class ... </p>

<pre><code>public class AnotherClass {
   void AFunction() {
      ch[1] = .. something;
    }
}
</code></pre>

<p>Error: the name ch doesn't exists in current context !</p>

<p>How can i access to game.ch[index] ????</p>

<p>Thank you!</p>
