static GameArkanoid() { instance = null; lockObject = new object(); }
public static GameArkanoid GetInstance() { if (instance == null) { lock (lockObject) { if (instance == null) instance = new GameArkanoid(); } } return instance; }