// Update is called once per frame void Update() { if (Input.GetButtonDown(attackButton)) { if (playerInv.PlayerHasWeapon()) { playerInv.getCurrentWeapon().Fire(player.GetDirection(), gameObject.transform); CameraShake.Shake(0.075f, 0.064f); } } }