void OnCollisionEnter2D(Collision2D coll) { if (coll.collider.tag == "Enemy") { //Application.LoadLevel(Application.loadedLevel); GameLogicScript.restartGame(); } }
// Update is called once per frame void Update() { if (lives <= 0) { //Application.LoadLevel(Application.loadedLevel); GameLogicScript.restartGame(); } }
void OnTriggerEnter2D(Collider2D coll) { if (coll.tag == "Player") { //print("go"); GameLogicScript.restartGame(); } }