How does one refer to the game1 class's variables in XNA
- by user1149068
I try to refer to an array in the Game1 class by creating an object of the Game1 class with its definition Game1 gameObject; , its declaration gameObject = new Game1(); in the constructor, and its usage gameObject.tileArray[xInt, yInt].treed = true;.
The game1 class itself remains unchanged in its class code other than some methods and variables.…