The Lists for the note gameobjects are currently stored in GameController. I think it would be better to make them a public member of each target.
This involves moving the properties out of GameController and into some prefab for note targets. If there is no prefab yet, make one.
Adding notes to the lists will be a method of the targets now, and calls to add/remove the notes from the list will be made from the Note script.
Notes will need to be created with knowledge of their target gameobject, so they can access the list functions. Pass the gameobject into the Initialize() function for the Notes
The
List
s for the note gameobjects are currently stored inGameController
. I think it would be better to make them a public member of each target.GameController
and into some prefab for note targets. If there is no prefab yet, make one.Note
script.Initialize()
function for theNotes