public GameCoreEventHandler() { this.broadcastChannel = new Channel(); this.notificationCenter = NotificationCenter.getInstance(); this.notificationCenter.registerChannel(this.broadcastChannel); //this.gameMachine = new GameStateMachine(); }
public static NotificationCenter getInstance() { if (instance == null) { instance = new NotificationCenter(); } return instance; }