I encountered a problem, i added a button to the game which on click would call a function to transition to next scene. But the function wouldn’t work though it worked when I called it using a script
public void Transit()
{
transit.SetTrigger("transit");
Invoke("next",0.833f);// wait for transition to complete
}
public void next()
{
//next scene
}
Thank You