示例#1
0
    // Update is called once per frame
    void Update()
    {
        Vector3 target_position = this.gazeTarget.transform.position;

        if (this.lookNow || this.stare)
        {
            gazescript.LookAtPoint(target_position);

            this.lookNow = false;
        }

        if (this.stopLooking)
        {
            this.stare = false;
            this.gazescript.StopLooking();
            this.stopLooking = false;
        }
    }
示例#2
0
 private static void napi_LookAtPoint(float x, float y, float z)
 {
     _eyeGazeController.LookAtPoint(new Vector3(x, y, z));
 }