suppose you've this code:
namespace StighyGames.CarsAttack {
public class CarsAttack
{
public static Channel[] ch = new Channel[30];
...
}
void main {
CarsAttack game = new CarsAttack();
}
}
In another cs file on the same project i declare another Class ...
public class AnotherClass {
void AFunction() {
ch[1] = .. something;
}
}
Error: the name ch doesn't exists in current context !
How can i access to game.ch[index] ????
Thank you!