public static MouseEventListenerManager getInstance() { if (mouseManager == null) { mouseManager = new MouseEventListenerManager(); } return(mouseManager); }
protected override void Initialize() { base.Initialize(); // Set up mapManager = MapManager.getInstance(); mouseManager = MouseEventListenerManager.getInstance(); uiManager = UIManager.getInstance(); materialsManager = Materials.getInstance(); taskManager = TaskManager.getInstance(); tweenManager = TweenManager.getInstance(); // Set up GUI uiManager.init(); }
public void onClickAction(EventHandler cusEvent) { MouseEventListenerManager.getInstance().addClickListener(this, cusEvent); }