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); }
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); }
public void Append(SmsVo vo) { HideSelection(); SetData(vo, false); }