void Awake() { // Get ref to AudioSource component _source = GetComponent <AudioSource>(); // Subscribe to manager _managerRef = AudioSourceManager.instance; _managerRef.RegisterPlayer(this); // Set defaults _defaultPitch = _source.pitch; _defaultVolume = _source.volume; }