Ivan Kashdan

Code sample for: OBJECTIVE SYSTEM

PURPOSE:

  1. Keeps track of objects resting on the plinth. 
  2. If an object matches an objective (as defined in the script), the objective will be ticked whilst the object is resting on the plinth.
 
 2 scripts are responsible for this functionality: ‘fObjectives.cs’ & ‘objectiveHUD.cs’.

fObjectives.cs

objectivesHUD.cs

End of code sample. All content and ideas are copyright of Ivan Kashdan.

Ivan Kashdan