using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class LoadEnd : MonoBehaviour {



    void OnCollisionEnter2D(Collision2D col) {

        if(col.transform.CompareTag("Player"))
            SceneManager.LoadScene("SceneYouWon");

    }

}
