void Start() { if (Instance == null) { photoPopup = Resources.Load <GameObject>("Prefabs/PhotoPopup"); Instance = this; StartCoroutine(corWebCamSetting()); } }
void Awake() { try { deviceCam = transform.parent.Find("CamDisplay").GetComponent <DeviceCam>(); } catch (NullReferenceException e) { // Silently ignoring exception -> camnot found Debug.Log("Cam not found"); } btn = GetComponent <Button>(); }