Beispiel #1
0
    void Start()
    {
        if (Instance == null)
        {
            photoPopup = Resources.Load <GameObject>("Prefabs/PhotoPopup");

            Instance = this;
            StartCoroutine(corWebCamSetting());
        }
    }
Beispiel #2
0
 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>();
 }