add package files
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace VIVE.FacialTracking.Sample
|
||||
{
|
||||
public class FollowCamera : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
public new Transform camera;
|
||||
private Vector3 offset;
|
||||
void Start()
|
||||
{
|
||||
this.transform.position = new Vector3(camera.position.x, camera.position.y, camera.position.z + 1);
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
this.transform.position = new Vector3(this.transform.position.x, camera.position.y, this.transform.position.z);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user