Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.SceneManagement;
- public class Death : MonoBehaviour
- {
- public int index;
- public string levelName;
- void OnTriggerEnter2D(Collider2D other)
- {
- if (other.CompareTag("Player"))
- {
- SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
- Debug.Log("blah");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement