示例#1
0
        private void Awake()
        {
            targetBlock = new RaycastHit2D[1];
            layerMask   = 1 << LayerMask.NameToLayer("MapBlock");

            mainIA = new MainIA();
            mainIA.MapControl.MouseMove.performed         += OnMove;
            mainIA.MapControl.ConfirmPlaceBlock.performed += OnConfirm;
        }
        private void Awake()
        {
            targetBlock = new RaycastHit2D[1];
            layerMask   = 1 << LayerMask.NameToLayer("MapBlock");
            mainCamera  = SceneObjRef.Instance.MainCamera;
            hitPoint    = new Vector2Int(-1, -1);

            mainIA = new MainIA();
            mainIA.MapControl.MouseMove.performed         += OnMove;
            mainIA.MapControl.ConfirmPlaceBlock.performed += OnConfirm;
            mainIA.MapControl.CancelPlaceBlock.performed  += OnCancel;

            enabled = false;
        }
示例#3
0
 private void Awake()
 {
     mainIA = new MainIA();
     //mainIA.MapControl.MouseMove.performed += OnPan;
     mainIA.MapControl.ZoomCamera.performed += OnZoom;
 }