コード例 #1
0
 public MouseInputSystem(LocalGameRunner initializer)
 {
     mapHolder = initializer.mapHolder;
     camera    = initializer.mainCamera;
     screenBounds.extendX((int)(-Screen.width * 0.01f));
     screenBounds.extendY((int)(-Screen.height * 0.01f));
     initControllers();
 }
コード例 #2
0
        // private Text text;

        public EntitySelectorInputSystem(LocalGameRunner initializer, CameraWithEsMovementSystem cameraWithEsMovementSystem)
        {
            this.camera = initializer.mainCamera;
            mapHolder   = initializer.mapHolder;
            localMap    = GameModel.localMap;
            // this.text = initializer.text;
            screenBounds.extendX((int)(-Screen.width * 0.01f));
            screenBounds.extendY((int)(-Screen.height * 0.01f));
            // visualSystem = new EntitySelectorVisualMovementSystem(camera, initializer.selector, initializer.mapHolder);
            initControllers();
        }