|
@@ -13,9 +13,6 @@ namespace GFGGame
|
|
|
|
|
|
public override void Dispose()
|
|
|
{
|
|
|
- GFGAsset.Release(ResPathUtil.GetTxtPath("serviceProtocal"));
|
|
|
- GFGAsset.Release(ResPathUtil.GetTxtPath("privacyPolicy"));
|
|
|
- GFGAsset.Release(ResPathUtil.GetTxtPath("privacyPolicyChildren"));
|
|
|
if (_ui != null)
|
|
|
{
|
|
|
_ui.Dispose();
|
|
@@ -35,9 +32,9 @@ namespace GFGGame
|
|
|
|
|
|
_ui.m_btnSubmit.onClick.Add(OnClickBtnSubmit);
|
|
|
// _ui.m_richTextAgree.onClickLink.Add(OnClickRichTextAgreeLink);
|
|
|
- _ui.m_loaEventa.onClick.Add(() => { OnClickRichTextAgreeLink("event:a"); });
|
|
|
- _ui.m_loaEventb.onClick.Add(() => { OnClickRichTextAgreeLink("event:b"); });
|
|
|
- _ui.m_loaEventc.onClick.Add(() => { OnClickRichTextAgreeLink("event:c"); });
|
|
|
+ _ui.m_loaEventa.onClick.Add(() => { FullScreenTextController.Show("event:a"); });
|
|
|
+ _ui.m_loaEventb.onClick.Add(() => { FullScreenTextController.Show("event:b"); });
|
|
|
+ _ui.m_loaEventc.onClick.Add(() => { FullScreenTextController.Show("event:c"); });
|
|
|
// _ui.m_btnSendCode.onClick.Add(() => {
|
|
|
//
|
|
|
// _ui.m_btnSendCode.enabled = false;
|
|
@@ -125,26 +122,5 @@ namespace GFGGame
|
|
|
LoginController.Register(account, password, realName, idNumberStr, CODE).Coroutine();
|
|
|
}
|
|
|
|
|
|
- private void OnClickRichTextAgreeLink(string eventname)
|
|
|
- {
|
|
|
- Debug.Log("link target " + eventname);
|
|
|
- string content = null;
|
|
|
- switch (eventname)
|
|
|
- {
|
|
|
- case "event:a":
|
|
|
- content = GFGAsset.Load<TextAsset>(ResPathUtil.GetTxtPath("serviceProtocal")).text;
|
|
|
- break;
|
|
|
- case "event:b":
|
|
|
- content = GFGAsset.Load<TextAsset>(ResPathUtil.GetTxtPath("privacyPolicy")).text;
|
|
|
- break;
|
|
|
- case "event:c":
|
|
|
- content = GFGAsset.Load<TextAsset>(ResPathUtil.GetTxtPath("privacyPolicyChildren")).text;
|
|
|
- break;
|
|
|
- }
|
|
|
- if (!string.IsNullOrEmpty(content))
|
|
|
- {
|
|
|
- FullScreenTextView.Instance.Show(content);
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
}
|