Пример #1
0
        protected async Task RefreshDataAsync(bool isFirst = false)
        {
            loading = true;
            StopAnimation();
            Actions = await BrowserService.GetActions(character.Id);

            if (!isFirst)
            {
                character = await BrowserService.GetCharacterAsync(currentSkin, currentAction, 0);
            }
            Frames            = character.CurrentBodyMotion.Actions.Keys.Select(key => int.Parse(key)).ToList();
            CurrentFrame      = 0;
            CurrentFaceFrame  = 0;
            character.EarType = currentEarType;

            PlayAnimation();
            loading = false;
        }