// Use this for initialization void Start() { controlScript = GetComponentInParent <PlayerControlScript> (); sounds = mainCam.GetComponent <SoundScript> (); game = sounds.GetComponentInParent <Game> (); }
// Use this for initialization void Start() { controlScript = GetComponentInParent <PlayerControlScript> (); sounds = mainCam.GetComponent <SoundScript> (); game = sounds.GetComponentInParent <Game> (); }