How to define a global variable that can be accessed anywhere in my application? [duplicate]

Possible Duplicate:
Global int variable objective c

I would like to create a global variable. I want to access to this variable anywhere.

The Java equivalent:

static var score:int = 0;

For example if I define a global variables into the Game class. How to access to this global variable?

Game.score ?
32
задан Community 23 May 2017 в 12:25
поделиться