private void OnTriggerEnter(Collider other) { if (other.CompareTag("Player")) { if (ScoreTracker.WhatLvl() == 0) { ScoreTracker.Changelvl(); SceneManager.LoadScene(1); } else if (ScoreTracker.WhatLvl() == 1) { ScoreTracker.Changelvl(); Debug.Log("Portal Active"); person.respawn(); } } }