Concrete Class: Food
Last updated
Last updated
Based on the video in Customization Steps, this section provides details of how to create your own custom type of items that can be used in the InventorySystem.
The video below shows how to import updated InventorySystem scripts and how to write code to create your own custom concrete class and scriptable objects as required for project 3.
Note, the video above shows that an additional step may be required when implementing the constructor for your custom concrete child class. Make sure to include setting instanceType
in the child class constructor as shown below, this step may not have been included in all videos, as it was part of the updated code modification for InventorySystem version2 on 4/11/2020.
You will create a concrete child class: In this example: Food: