Пример #1
0
        private async Task OnAttackSuccessfullAsync()
        {
            string str      = JsonUtility.ToJson(replayStart);
            var    fileName = $"replay_{attackedPlayerId}_{attackingPlayer.Id}";

            await replaysContainer.UploadFile(str, fileName);

            await dataUpload.InsertTable(attackingPlayer.Id, attackedPlayerId, fileName);
        }
        public override async Task UpdatePlayerBase(string playerId, BaseDescription newDescription)
        {
            newDescription.isPersistant = true;

            var fileName = string.Format(baseFileNameFormat, playerId);
            var baseJson = JsonUtility.ToJson(newDescription);

            await basesContainer.UploadFile(baseJson, fileName);
        }