// Use this for initialization void Start() { rndLvlLoad = GameObject.FindGameObjectWithTag("Loader").GetComponent <RandomLevelLoad>(); }
// Use this for initialization void Start() { rndLvlLoad = GameObject.FindGameObjectWithTag("Loader").GetComponent <RandomLevelLoad>(); btn = GetComponent <Button>(); btn.onClick.AddListener(() => HandleClick()); }