using System;
namespace TestCS
{
class Program
{
static void Main(string[] args)
{
MapManager.Singleton.Init();
Console.ReadKey();
}
class MapManager
{
private MapManager()
{
}
static MapManager m_Singleton;
public static MapManager Singleton
{
get
{
if (m_Singleton == null)
{
m_Singleton = new MapManager();
}
return m_Singleton;
}
}
public void Init()
{
Console.WriteLine("Init");
}
}
}
}