コード例 #1
0
ファイル: EyeHeadGazeTester.cs プロジェクト: fnunnari/YALLAH
    // 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
ファイル: NativeAPIBridge.cs プロジェクト: fnunnari/YALLAH
 private static void napi_LookAtPoint(float x, float y, float z)
 {
     _eyeGazeController.LookAtPoint(new Vector3(x, y, z));
 }