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; }
private void Awake() { mainIA = new MainIA(); //mainIA.MapControl.MouseMove.performed += OnPan; mainIA.MapControl.ZoomCamera.performed += OnZoom; }