A
A
AlexEnotik2021-09-04 22:43:05
C++ / C#
AlexEnotik, 2021-09-04 22:43:05

Public void ToMenu() Why isn't this function in EventTrigger?

Help me please!
I have the following in the Achievments scene code:

public void ToMenu()
{
SceneManager.LoadScene(0);
}
private void Update()
{

}
}

I created a button in the Canvas, then added an EventTrigger to the components and I can't add a function to make the camera return to the main scene. What can be done?
6133cc36d0538006214165.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question