Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class GameState{
- private static GameState _instance;
- public string Example; //пример переменной где можно сохранять, обращаться к ней из любого места в любое время GameState.Instance.Example
- public static GameState Instance{
- get{
- if (_instance == null){
- _instance = new GameState();
- }
- return _instance;
- }}
- protected GameState(){}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement