Singleton Design Pattern
This commit is contained in:
parent
72b2a6d92d
commit
258291df5c
|
@ -3,7 +3,7 @@ import data;
|
||||||
class GStateManager {
|
class GStateManager {
|
||||||
private static GStateManager instance;
|
private static GStateManager instance;
|
||||||
|
|
||||||
private this() {}
|
private this() { }
|
||||||
|
|
||||||
static GStateManager getInstance() {
|
static GStateManager getInstance() {
|
||||||
if(instance is null) {
|
if(instance is null) {
|
||||||
|
|
Loading…
Reference in New Issue