private void HandleInput() { movementForce = Input.GetAxisRaw("Horizontal") * movementSpeedMultipler; if (Input.GetButtonDown("Jump")) { jump = true; } if (Input.GetButton("Fire1") && canShoot) { Shoot(); } if (!canShoot && !shootingBlockade) { timeLeft -= Time.deltaTime; reloadProgress.fillAmount = timeLeft / weapon.timeBetweenShoots; if (timeLeft <= 0) { canShoot = true; timeLeft = weapon.timeBetweenShoots; reloadProgress.fillAmount = 0; } } if (Input.GetKeyDown(KeyCode.Escape)) { Cursor.visible = !Cursor.visible; } if (Input.GetButtonDown("Fire2") && Coins > 0 && !isDashing) { Dash(); //if (tileManager.GetTilemap(0).SetTile(lookPos, TileType.White)) //{ // Coins--; // coinsText.text = Coins.ToString(); //} } if (Input.GetKeyDown(KeyCode.F)) { if (tileManager.GetTilemap(0).RemoveTile(lookPos)) { effectHandler.InstantiateCoin(new Vector3(lookPos.x, lookPos.y, 0) + transform.position); } } }