public void Die() { Destroy(gameObject); GameObject explosion = Instantiate(boomVfx, transform.position, Quaternion.identity); Destroy(explosion, 1f); AudioSource.PlayClipAtPoint(enemyDeadSound, Camera.main.transform.position, soundVolume); ScoreCount scoreCount = FindObjectOfType <ScoreCount>(); scoreCount.AddToScore(scorePerOne); //AudioSource.PlayClipAtPoint //audioSource.play //audioSource.PlayOneShot }