If I am the object named Player and I collide with the exit point he moves to the next scene,
The issue I am having is lack of knowledge.
I want to say If I am on the current scene and I am the the player object then I can move to the next scene. so that I have to be on a certain scene before I transition to the next.
How do I refer to the current scene in this scenario?
The part of of my script I need help with…
if(Colider.gameObject.name == “Player”); //checking for name
{
SceneManager.LoadScene (“02”); //The scene I am loading
}
Sorry if I am not being clear with my issue,