G
G
genadievivan052021-03-28 12:45:29
Unity
genadievivan05, 2021-03-28 12:45:29

How to implement a transition to another scene?

I'm making a clicker. I need to make a transition to another scene when the player makes 1000 clicks. I don't know how to implement.

Here's how the click count was made.
https://pastenow.ru/01717c63b59f840f30dcc9f7b63c03e0

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
CHIDWI, 2021-03-28
@genadievivan05

include the library using

using UnityEngine.SceneManagement;

//в метод Update или CliksCar добавляешь
if(clik >= 1000)
{
SceneManager.LoadScene("sceneName"); //собсна в скобках имя сцены
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question