Beispiel #1
0
 public static MouseEventListenerManager getInstance()
 {
     if (mouseManager == null)
     {
         mouseManager = new MouseEventListenerManager();
     }
     return(mouseManager);
 }
Beispiel #2
0
        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();
        }
Beispiel #3
0
 public void onClickAction(EventHandler cusEvent)
 {
     MouseEventListenerManager.getInstance().addClickListener(this, cusEvent);
 }