void makeSoundSphere(float size, float destroyTime, Vector3 pos) { soundManager sound = Instantiate(soundSphere, pos, Quaternion.identity).GetComponent <soundManager>(); sound.setVariables(size, destroyTime); }