Home > other > Novice more scenes from the jump button events of the last scene with no response
Novice more scenes from the jump button events of the last scene with no response
Time:09-27
Have two scenarios A and B, in scene after 1 click of A button on A load scenario B, B after loading scene, the mouse to click the button 2, incident response is still in the scene, A scene B as just A mask layer, how be to return A responsibility excuse me? Scenario A hanging script, button 1 event Void Click_Show () { StartCoroutine (Show); }
Scenario B hang up another script, button 2 events Public void onClick_Pre () { //code
}
CodePudding user response:
You this kind of writing is not jump scene, Void Click_Show () { SceneLog SceneManager. LoadScene (" "); } If not, you write your requirements in the know I'm watching,
CodePudding user response:
Scene jump SceneManager. LoadScene (" scenario name or index "); Write a click event to the button to see if the update () start () or something accidentally call. You can use the debug log test