示例#1
0
 public override void LoadHelpStepData()
 {
     if (this.StepData == null)
     {
         var filePath = $"{Application.persistentDataPath}/Newbie/NewbieHelp_{this.MainID}_{this.ID}.json";//远程端持久化目录下载 + this.id(归到下载更新里面)
         this.StepData = CaomaoDriver.DataModule.GetJsonData<NewbieHelpTipStepData>(filePath);
     }
 }
示例#2
0
        public async void SetNewbieHelpStepData(NewbieHelpTipStepData data, int index)
        {
            if (index >= data.Dialogs.Count)
            {
                Debug.LogError("Index >= Dialog.Count");
                return;
            }

            var tipData = data.Dialogs[index];

            if (tipData != null)
            {
                this.lb_tip.text           = tipData.DialogContent;
                this.lb_characterName.text = tipData.CharacterName;
                this.sp_character.sprite   = await CaomaoDriver.ResourceModule.
                                             LoadAssetAsyncNoCallback <Sprite>(tipData.CharacterPath);

                this.SetVisiable(true);
            }
        }