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