So, yoh guys! The issues is that i have two collider for change scene in the same scene (the game is in 2d) , one is activate with “OnTriggerEnter2d”, I would like to activate the other by pressing a button but i have no clue to how i could implement it. The base of the script is:
public int index;
public string Level;
void OnTriggerEnter2D(Collider2D other)
{
if (other.CompareTag ("Player"))
{
SceneManager.LoadScene(2);
}
}
Someone can help me? Thanks in advance!