void Start() { if (!hasAuthority) { return; } txtMy.text = string.Join(",", PoseParser.GETPoseArray()); }
void Update() { if (!hasAuthority) { return; } txtMy.text = PoseParser.GETGestureAsString() + string.Join(",", PoseParser.GETPoseArray()); }
// Update is called once per frame void Update() { if (!photonView.IsMine) { return; } poseArr = PoseParser.GETPoseArray(); currentNosePos = new Vector3(poseArr[0], poseArr[1], 0); noseOffset = currentNosePos - origionalNosePos; noseOffset.Scale(new Vector3(-1.0f / 240.0f, -1.0f / 240.0f, 1.0f / 240.0f)); //Debug.Log(noseOffset.ToString()); //cameraTransform.localPosition = origionalTranfromPos + noseOffset; photonView.RPC("newHeadPos", RpcTarget.All); }