using System; using UnityEngine; using UnityEngine.InputSystem; [RequireComponent(typeof(PlayerInput))] public class Player : MonoBehaviour { private void Awake() { DontDestroyOnLoad(gameObject); } }