using System.Collections; using System.Collections.Generic; using Unity.RenderStreaming; using UnityEngine; namespace touping { public class dontClear : MonoBehaviour { public SignalingManager sm; // Start is called before the first frame update void Start() { DontDestroyOnLoad(this.gameObject); Invoke("yidong",1f); } void yidong() { this.transform.position = Camera.main.transform.position; this.transform.eulerAngles = new Vector3(0, Camera.main.transform.eulerAngles.y, 0); } // Update is called once per frame void Update() { } } }