void Update() { if (Input.GetButtonDown("Jump")) { source.clip = jumpSound; source.Play(); jump = true; } if (Input.GetButton("Fire1")) { source.clip = attackSound; source.Play(); character.Attack(); } }