private GameObjectManager() { }
private static GameObjectManager gom = null;
public static GameObjectManager GetInstance()
{
if (gom == null)
{
gom = new GameObjectManager();
}
return gom
}
原文:http://www.cnblogs.com/liyiyong/p/5125754.html