Ejemplo n.º 1
0
        public GameMainManager()
        {
            playerData  = LocalDatasManager.playerData;
            playerModel = new PlayerModel(playerData);
            GuideManager guide = GuideManager.Instance;

            //netManager = net.NetManager.Instance;
            //configManager = config.ConfigManager.Instance;
            //uiManager = ui.UIManager.Instance;
            //audioManager = AudioManager.Instance;
            audioManager.SetSoundPathProxy(FilePathTools.getAudioPath);
            audioManager.SetMusicPathProxy(FilePathTools.getAudioPath);
        }
Ejemplo n.º 2
0
        private void Awake()
        {
            _instance = this;

            mask.gameObject.SetActive(false);
            arrow.gameObject.SetActive(false);
            hollowOffRect.gameObject.SetActive(false);
            HideDialog();
            GameObject.DontDestroyOnLoad(gameObject);
            Messenger.AddListener <ui.UISettings.UIWindowID>(ELocalMsgID.OpenUI, OnOpenUIHandle);
            Messenger.AddListener <ui.UISettings.UIWindowID>(ELocalMsgID.CloseUI, OnCloseUIHandle);
            displayedGuides = LocalDatasManager.displayedGuides;

            canvas            = gameObject.GetComponent <Canvas>();
            canvas.renderMode = RenderMode.ScreenSpaceCamera;
            StartCoroutine(SetCanvasCamera());
        }
Ejemplo n.º 3
0
 private void OnDestroy()
 {
     _instance = null;
     Messenger.RemoveListener <ui.UISettings.UIWindowID>(ELocalMsgID.OpenUI, OnOpenUIHandle);
     Messenger.RemoveListener <ui.UISettings.UIWindowID>(ELocalMsgID.CloseUI, OnCloseUIHandle);
 }