Exemplo n.º 1
0
        public void LoadSmsById(string id, Action <SmsVo> onComplete)
        {
            string text = new AssetLoader().LoadTextSync(AssetLoader.GetStorySmsDataPath(id));

            text = text.Replace("{$player}", GlobalData.PlayerModel.PlayerVo.UserName);
            SmsVo vo = JsonConvert.DeserializeObject <SmsVo>(text);

            onComplete(vo);
        }
Exemplo n.º 2
0
        public void SetData(SmsVo vo, bool showAnimation)
        {
            OpenAnimation(showAnimation);

            _smsVo = vo;
            _bgBlurEffect.StartRecord(ResourceManager.Load <Texture>(AssetLoader.GetStoryBgImage(_smsVo.bgImageId), ModuleName), tex =>
            {
                _bgImage.texture = tex;
            });
            _nameText.text = vo.GetRoleName();

            _currentIndex = 0;
            IsWait        = false;

            AddNewItem();

            OnAutoPlay(_continueAutoPlay);

            NextStep(null);
        }
Exemplo n.º 3
0
 public void Append(SmsVo vo)
 {
     HideSelection();
     SetData(vo, false);
 }