private SfxHandler sfxScript; // markcode public override void Start () { base.Start(); GameObject gc = GameObject.FindGameObjectWithTag ("GameController"); ih = (InputHandler)gc.GetComponent(typeof(InputHandler)); ih.UnFreeze (); gcs = (GameControllerScript)gc.GetComponent (typeof(GameControllerScript)); tc = (TierController)this.gameObject.GetComponent (typeof(TierController)); // markcode: set the sfxScript varialbe to the SfxHandler script attached to the game controller this.sfxScript = (SfxHandler)GameObject.FindGameObjectWithTag("GameController").GetComponent(typeof(SfxHandler)); }