Daily Progress: Refactoring AWS Manager and Uploading to AWS.

In the UIManager class in the SubmitButton function, we first created a new variable called _filePath and placed the constructed string into it for a bit more readability.

Since we’re going to send data to the AWSManager, it would simplify things if we made it into a singleton:

We’ll also need to access the s3Client to upload so we’ll turn that into a property:

And we’ll delete all of the AmazonS3Client variables in the awake function now that we’ve moved it over to its own property.

Here’s the current AWSManager code for reference:

https://pastebin.com/embed_js/dyQ7TUVm

<script src=”https://pastebin.com/embed_js/dyQ7TUVm"></script>