Question by
MunityUnity · Dec 24, 2017 at 09:33 PM ·
unity 2d
Here's my code, now why isn't my 2d scene changing working?,Why is my scene not changing, here's my code
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"); } }
Comment