void EndDialogue() { if (currentdialog == "fallingtodeath") { pathhandler.Invoke("ReturnToMainScreen", 2); } else if (currentdialog == "Intro") { pathhandler.Invoke("StartAdventure", 3); } else if (currentdialog == "scene2A" || currentdialog == "scene2B" || currentdialog == "scene2C" || currentdialog == "child2" || currentdialog == "ending1" || currentdialog == "ending2" || currentdialog == "ending3") { pathhandler.nochoise(); } else { pathhandler.TriggerChoise(); } Debug.Log("End of conversation"); }