优化一大波
This commit is contained in:
@@ -95,5 +95,15 @@ namespace GameFramework
|
||||
Application.Quit();
|
||||
#endif
|
||||
}
|
||||
|
||||
void OnDestroy()
|
||||
{
|
||||
if (startButton != null) startButton.onClick.RemoveAllListeners();
|
||||
if (storyReplayButton != null) storyReplayButton.onClick.RemoveAllListeners();
|
||||
if (creditsButton != null) creditsButton.onClick.RemoveAllListeners();
|
||||
if (quitButton != null) quitButton.onClick.RemoveAllListeners();
|
||||
if (settingsBackButton != null) settingsBackButton.onClick.RemoveAllListeners();
|
||||
if (creditsCloseButton != null) creditsCloseButton.onClick.RemoveAllListeners();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user