示例#1
0
    void Start()
    {
        _WebCamCon = GameObject.Find("WebCameraController").GetComponent <WebCameraController>();
        if (_WebCamCon == null)
        {
            Debug.Log("Can't find WebCameraController.");
            return;
        }

        _UICon = GameObject.Find("UIController").GetComponent <UIController>();
        if (_UICon == null)
        {
            Debug.Log("Can't find UIController.");
            return;
        }

        _PhCon = GameObject.Find("PhotonController").GetComponent <PhotonController>();
        if (_PhCon == null)
        {
            Debug.Log("Can't find PhotonController.");
            return;
        }
    }