Y
Y
Yugg02019-03-11 21:25:29
Game development
Yugg0, 2019-03-11 21:25:29

How to make it so that when colliding with an enemy, the scene is reloaded in Unity2D?

We need to make sure that when the player's collider touches the enemy's collider, the scene is reloaded!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
CHIDWI, 2019-03-12
@YugGO

You connect the library
using UnityEngine.SceneManagement;
Further in the code
you call SceneManager. LoadScene("scene name")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question