// Use this for initialization void Start() { GameObject explosion = this.gameObject.transform.FindChild ("Explosion").gameObject; barrel = this.gameObject.AddComponent<Medium>() as Medium; sounds = GetComponents<AudioSource> (); barrel.construct (this.gameObject, explosion, sounds[1]); }