Blackboard.cs
v4.0
Add the "Blackboard" prefab from the Repositories folder to your project. The Blackboard.cs
component is already attached here.
The Blackboard component is the central hub for all of the Blackboard actions. Add this to the top of any script which utilizes it:
The best way to interact with the Blackboard is to have your class inherit from BlackboardFollower
, which will automatically subscribe and unsubscribe it to event and note notifications. All you have to do is override the methods so you can choose how to handle the notifications as they come in.
Timeboard
The Gametime module has a Timeboard
object which has it's own Blackboard. It is used to send information out, and also keep track of time without requiring objects to access the Gametime
data directly. Check it out to see how it talks with its blackboard object.
Last updated