提交
This commit is contained in:
@@ -15,37 +15,37 @@ namespace AibisDream
|
||||
{
|
||||
// GameManager.Instance.PauseGame();
|
||||
gameObject.SetActive(true);
|
||||
RegisterButton();
|
||||
// RegisterButton();
|
||||
}
|
||||
|
||||
public void Hide()
|
||||
{
|
||||
gameObject.SetActive(false);
|
||||
UnRegisterButton();
|
||||
// UnRegisterButton();
|
||||
// GameManager.Instance.ContinueGame();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private void RegisterButton()
|
||||
{
|
||||
var returnBtn = transform.Find("返回").GetComponent<Button>();
|
||||
returnBtn.onClick.AddListener(BackToMain);
|
||||
var backToMain = transform.Find("问卷").GetComponent<Button>();
|
||||
backToMain.onClick.AddListener(OpenFeedbackLink);
|
||||
var quit = transform.Find("Bug反馈").GetComponent<Button>();
|
||||
quit.onClick.AddListener(OpenBugLink);
|
||||
}
|
||||
// private void RegisterButton()
|
||||
// {
|
||||
// var returnBtn = transform.Find("返回").GetComponent<Button>();
|
||||
// returnBtn.onClick.AddListener(BackToMain);
|
||||
// var backToMain = transform.Find("问卷").GetComponent<Button>();
|
||||
// backToMain.onClick.AddListener(OpenFeedbackLink);
|
||||
// var quit = transform.Find("Bug反馈").GetComponent<Button>();
|
||||
// quit.onClick.AddListener(OpenBugLink);
|
||||
// }
|
||||
|
||||
private void UnRegisterButton()
|
||||
{
|
||||
var returnBtn = transform.Find("返回").GetComponent<Button>();
|
||||
returnBtn.onClick.RemoveAllListeners();
|
||||
var backToMain = transform.Find("问卷").GetComponent<Button>();
|
||||
backToMain.onClick.RemoveAllListeners();
|
||||
var quit = transform.Find("Bug反馈").GetComponent<Button>();
|
||||
quit.onClick.RemoveAllListeners();
|
||||
}
|
||||
// private void UnRegisterButton()
|
||||
// {
|
||||
// var returnBtn = transform.Find("返回").GetComponent<Button>();
|
||||
// returnBtn.onClick.RemoveAllListeners();
|
||||
// var backToMain = transform.Find("问卷").GetComponent<Button>();
|
||||
// backToMain.onClick.RemoveAllListeners();
|
||||
// var quit = transform.Find("Bug反馈").GetComponent<Button>();
|
||||
// quit.onClick.RemoveAllListeners();
|
||||
// }
|
||||
|
||||
private void BackToMain()
|
||||
{
|
||||
@@ -53,14 +53,14 @@ namespace AibisDream
|
||||
GameManager.Instance.QuitGame();
|
||||
}
|
||||
|
||||
private void OpenFeedbackLink()
|
||||
{
|
||||
Application.OpenURL(ConstRef.SurveyURL);
|
||||
}
|
||||
// private void OpenFeedbackLink()
|
||||
// {
|
||||
// Application.OpenURL(ConstRef.SurveyURL);
|
||||
// }
|
||||
|
||||
private void OpenBugLink()
|
||||
{
|
||||
Application.OpenURL(ConstRef.BugSurveyURL);
|
||||
}
|
||||
// private void OpenBugLink()
|
||||
// {
|
||||
// Application.OpenURL(ConstRef.BugSurveyURL);
|
||||
// }
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"Volume": "0.89",
|
||||
"Language": "zh-Hans",
|
||||
"Language": "en",
|
||||
"WindowMode": "Windowed"
|
||||
}
|
||||
Reference in New Issue
Block a user