P
P
Philsel2018-02-17 16:07:10
C++ / C#
Philsel, 2018-02-17 16:07:10

Is it possible to change the scene in Unity when a variable reaches a certain value?

Hello! I recently started working in Unity, writing scripts in C#.
So, is it possible to make the scene change when the variable reaches a certain value?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
xmoonlight, 2018-02-17
@Philsel

Can.

T
TheTalion, 2018-02-17
@TheTalion

int i = o;

while(true)
{
i++;
 if(i == 69)
 {
 SceneManager.LoadScene("SearchInGogel");
 }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question