public static StatManager GetInstance() { lock( typeof( StatManager ) ) { if( instance == null ) instance = new StatManager(); } return instance; }
public static StatManager GetInstance() { lock (typeof(StatManager)) { if (instance == null) { instance = new StatManager(); } } return(instance); }
public void Dispose() { instance = null; }