using System.Collections; using System.Collections.Generic; using UnityEngine; using ShadowKit; public class followCamera : MonoBehaviour { void Start () { } // Update is called once per frame void Update () { transform.position = SvrManager.Instance.head.transform.position + SvrManager.Instance.head.transform.forward * 2; transform.position = new Vector3(transform.position.x, 0.5f, transform.position.z); transform.LookAt(SvrManager.Instance.head.transform, Vector3.up); } }