public void FinishAttackingBow() { playerMotor.SetCanMove(true); float direction = transform.localScale.x; ArrowScript script = Instantiate(lastWeapon.arrowPrefab, lastWeapon.arrowSpawnOffset + transform.position, Quaternion.identity).GetComponent <ArrowScript>(); //rb.AddForce(new Vector2(ArrowForce * direction, 0), ForceMode2D.Impulse); script.SetDamage(lastWeapon.baseDamage); script.transform.localScale *= transform.localScale.x; script.SetSpeed(lastWeapon.arrowForce * direction); // Bow Attack }