123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- using UnityEngine;
- using System.Collections;
- using System.IO;
- public class MovieWindow : MonoBehaviour {
- private GameObject mMoviePanel = null;
- private GameObject mCloseButton = null;
- public void Init()
- {
- // LogHelper.Log(GameCfg._LocalSettingsPath);
- if (!File.Exists(Const.LocalConfigFileName)) // 未创建本地配置文件代表游戏第一次运行, 播放电影 -wg 2019年10月24日13:57:29
- {
- GameCfg._InitLocalSettigs();
- mMoviePanel = transform.Find("Movie").gameObject;
- mMoviePanel.SetActive(true);
- mCloseButton = mMoviePanel.transform.Find("CloseButton").gameObject;
- EventTriggerListener.Get(mCloseButton).onClick = OnClickPanel;
- }
- else
- {
- PanelHelper.Instance.ShowPanel("UI_NewLoginWindow",(ab) =>
- {
- });
- }
-
- // EventTriggerListener.Get(mMoviePanel).onClick = OnClickPanel;
- // GameObject.Find("UI_SplashWindow").SetActive(false);
- }
-
- // Update is called once per frame
- void Update () {
-
- }
- private void OnClickPanel(GameObject go)
- {
- PanelHelper.Instance.ShowPanel("UI_NewLoginWindow", (ab) =>
- {
- //// 关闭Loading
- mMoviePanel.SetActive(false);
- //PanelHelper.Instance.ShowPanel("UI_NoticeWindow", null, null, false, true, (ac) =>
- //{
- //});
- });
-
- }
- }
|