public static BlockFactorySingleton GetInstance() { if (instance == null) { lock (lockObject) { if (instance == null) { instance = new BlockFactorySingleton(); } } } return(instance); }
public TeleporterMapBuilder() { this.map = new Map(xSize, ySize); this.map.mapName = "concrete"; factory = BlockFactorySingleton.GetInstance(); }
public DefaultMapBuilder() { this.map = new Map(xSize, ySize); this.map.mapName = "default"; factory = BlockFactorySingleton.GetInstance(); }