using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class Scene_Changer : MonoBehaviour
{
void OnTriggerEnter2D (Collider2D Colider)
{
if(Colider.gameObject.tag == “Player”)
Application.LoadLevel(“2D_platformer”); with a green line under it in microsoft visual studio
}
}
,using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class Scene_Changer : MonoBehaviour
{
void OnTriggerEnter2D (Collider2D Colider)
{
if(Colider.gameObject.tag == “Player”)
Application.LoadLevel(“2D_platformer”);
}
}