Daily Progression: Define A Case!
Objective: Create a case and define what makes a case.
In this insurance application I’ve been creating we are going to be dealing with many cases. We need to think about what defines a case. Every case is going to have a list of variables.
(String case ID, string name, string date, string location, string location notes, raw image photo, string photo notes.)
We are going to create a case object that is going to define these traits. Then, we are going to write to these properties and save it out as a file and upload to S3. We will then be able to retrieve these files and display it.
To begin we need to create a “Case” script.
This will not inherit mono behavior, because this will not be attached to any objects. this is just going to define what a case is using the list of properties we mentioned before.
It may help to visualize what an active case looks like in the inspector. To display in the inspector add the [system.serializable] at the top of your code.
In the next tutorial I will show you an example of how the case can be seen and created. Don’t be afraid to experiment with how your code and I’ll see you in the next tutorial!