示例#1
0
        public static StatManager GetInstance()
        {
            lock( typeof( StatManager ) )
            {
                if( instance == null )
                    instance = new StatManager();
            }

            return instance;
        }
示例#2
0
        public static StatManager GetInstance()
        {
            lock (typeof(StatManager))
            {
                if (instance == null)
                {
                    instance = new StatManager();
                }
            }

            return(instance);
        }
示例#3
0
 public void Dispose()
 {
     instance = null;
 }
示例#4
0
 public void Dispose()
 {
     instance = null;
 }