Esempio n. 1
0
 void Start()
 {
     if (!hasAuthority)
     {
         return;
     }
     txtMy.text = string.Join(",", PoseParser.GETPoseArray());
 }
Esempio n. 2
0
 void Update()
 {
     if (!hasAuthority)
     {
         return;
     }
     txtMy.text = PoseParser.GETGestureAsString() + string.Join(",", PoseParser.GETPoseArray());
 }
Esempio n. 3
0
    // 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);
    }