// Update is called once per frame void Update() { if (SceneManager.GetActiveScene().name == "JeopardyScene") { playerInstance = null; Destroy(gameObject); } }
void Awake() { DontDestroyOnLoad(this); if (playerInstance == null) { playerInstance = this; } else { Destroy(gameObject); } }