12 Class Blackboard

This example shows you how to use a class Blackboard.

These files can be found in the /Examples/[example] and /Blackboards/Examples folders.

ClassBlackboard.cs

using System;
using CrashKonijn.RabbitBlackboard.Contracts;

namespace CrashKonijn.BlackboardPro.Blackboards.Examples
{
    // Make sure the class is serializable so it can show in the editor
    [Serializable]
    public partial class ClassBlackboard : IBlackboard
    {
        private int health = 50;
        private static bool isLowHealth(Signals.Health health) => health.Value < 50;
    }
}

ClassBehaviour.cs

Last updated