-
Notifications
You must be signed in to change notification settings - Fork 0
Developer Notes
We imported a UI template off the internetz called 'Game Jam Menu Template'. So the UI scripts that we imported are in the template's Scripts directory, while the ones we created are in Assets/Scripts. Do not add any new scripts to the template scripts directory.
For a basic understanding of how the project is set up, we recommend doing Unity's roll-a-ball tutorial.
The arrow represents a class extending another. Think as an 'is a' relationship, e.g. PlayerController is a Person.
The Person class represents a person (duh). The only person in the game right now is the player, but the idea is that in the future, we may have more Persons, like Non-Player Characters who each have their own inventory and stuff. Might make this an abstract class later.
Edit this: http://yuml.me/diagram/scruffy/class/edit/[PlayerController]->[Person]
Attach this script to any GameObject through the inspector and it becomes interactable. In other words, the player can click on it and it does something.
Attach this script and the GameObject can be collected and placed in the inventory of the player. You should assign it a sprite (basically, an image from Resources/Sprites/Items), or else it will show up as a purple question mark in the inventory panel.
Edit this: http://yuml.me/diagram/scruffy/class/edit/[Collectible]->[Interactable]