Example #1
0
    void StartCameraWork()
    {
        CameraWork cw = this.gameObject.GetComponent <CameraWork> ();

        if (cw == null)
        {
            Debug.LogError("<Color=Red><a>Missing</a></Color> CameraWork Component on playerPrefab.", this);
            return;
        }

        if (PhotonNetwork.connected == false || photonView.isMine)
        {
            cw.StartFollowing(this.gameObject);
        }
    }