// Use this for initialization void Start() { qr = GetComponent <CreateQR>(); text = GetComponentInChildren <InputField>(); menu = GetComponent <UGUI_MenuSwitch>(); }