private void OnTriggerEnter2D(Collider2D other) { if (other.CompareTag("Player")) { GameManager.Instance.PreviousScene = AreaName; if (!SceneToLoad.Equals(Constants.MAP)) { // only add scene if not going to map EventManager.Instance.AddEvent(SceneToLoad.GetSceneName()); } LoadSceneLogic.Instance.LoadScene(SceneToLoad.GetSceneName()); } }